Browse Source

Adds unit test for boostrapper

Former-commit-id: 04c9f1ed93785a12651bf1534db0ab75c54cab3d
Former-commit-id: c309bfb1922779cfd24306c1784b19cbacf6880f
af/merge-core
Thomas Broust 12 years ago
parent
commit
a2e32afbf4
  1. 31
      src/ImageProcessor.UnitTests/Configuration/ImageProcessorBootrapperTests.cs
  2. 1
      src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj

31
src/ImageProcessor.UnitTests/Configuration/ImageProcessorBootrapperTests.cs

@ -0,0 +1,31 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ImageProcessorBootstrapperTests.cs" company="James South">
// Copyright (c) James South.
// Licensed under the Apache License, Version 2.0.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
namespace ImageProcessor.UnitTests.Configuration
{
using System;
using System.Linq;
using FluentAssertions;
using NUnit.Framework;
using ImageProcessor.Configuration;
/// <summary>
/// Test harness for the ImageProcessor bootstrapper tests
/// </summary>
[TestFixture]
public class ImageProcessorBootrapperTests
{
[Test]
public void Singleton_is_instantiated()
{
ImageProcessorBootstrapper.Instance.SupportedImageFormats.Count().Should().BeGreaterThan(0, "because there should be supported image formats");
ImageProcessorBootstrapper.Instance.NativeBinaryFactory.Is64BitEnvironment.Should().Be(Environment.Is64BitProcess);
}
}
}

1
src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj

@ -54,6 +54,7 @@
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="Configuration\ImageProcessorBootrapperTests.cs" />
<Compile Include="ImageFactoryUnitTests.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Compile>

Loading…
Cancel
Save