IReport is added

This commit is contained in:
ear
2022-09-13 16:06:41 +05:00
parent d9e3f9ba54
commit 7a4fd63fc2
24 changed files with 395 additions and 72 deletions

View File

@@ -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)
{

View File

@@ -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);
}
}
}