IReport is added
This commit is contained in:
@@ -22,11 +22,11 @@ namespace StructureHelperTests.FieldsVisualizerTests.ColorOperationTests
|
||||
|
||||
[TestCase(0, 100, -10, 255, 128, 128, 128)] //Gray as less than minimum
|
||||
[TestCase(0, 100, 0, 255, 255, 128, 128)]
|
||||
[TestCase(0, 100, 50, 255, 255, 255, 0)]
|
||||
[TestCase(0, 100, 100, 255, 0, 0, 255)]//Blue
|
||||
[TestCase(0, 100, 50, 255, 255, 254, 0)] //!!!!!!254 cause broading range in method!
|
||||
[TestCase(0, 100, 100, 255, 0, 0, 254)]//Blue
|
||||
[TestCase(0, 100, 110, 255,128, 128, 128)] //Gray as greater than maximum
|
||||
[TestCase(-100, 100, 110, 255, 128, 128, 128)] //Gray as greater than maximum
|
||||
[TestCase(-100, 100, 100, 255, 0, 0, 255)]//Blue
|
||||
[TestCase(-100, 100, 100, 255, 0, 0, 254)]//Blue
|
||||
[TestCase(100, 100, -100, 255, 255, 128, 128)]
|
||||
public void Run_ShouldPass(double bottomVal, double topVal, double val, int expectedA, int expectedR, int expectedG, int expectedB)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
using FieldVisualizer.Entities.ColorMaps;
|
||||
using FieldVisualizer.Entities.ColorMaps.Factories;
|
||||
using FieldVisualizer.Entities.Values;
|
||||
using FieldVisualizer.Entities.Values.Primitives;
|
||||
using FieldVisualizer.InfraStructures.Enums;
|
||||
using FieldVisualizer.Services.ColorServices;
|
||||
using FieldVisualizer.Services.PrimitiveServices;
|
||||
using FieldVisualizer.Windows;
|
||||
using NUnit.Framework;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace StructureHelperTests.FieldsVisualizerTests.WindowTests
|
||||
{
|
||||
public class ViewerTest
|
||||
{
|
||||
private IEnumerable<IPrimitiveSet> primitiveSets;
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
primitiveSets = TestPrimitivesOperation.AddTestPrimitives();
|
||||
}
|
||||
public void Run_ShouldPass()
|
||||
{
|
||||
//Arrange
|
||||
//Act
|
||||
WndFieldViewer viewer = new WndFieldViewer(primitiveSets);
|
||||
//Assert
|
||||
Assert.NotNull(viewer);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user