All tests were changed due to Nunit lib changing

This commit is contained in:
Evgeny Redikultsev
2024-12-18 22:16:50 +05:00
parent 0538c6b53c
commit a14433f3cb
43 changed files with 206 additions and 174 deletions

View File

@@ -1,5 +1,6 @@
using NUnit.Framework;
using StructureHelper.Windows.Graphs;
using StructureHelperCommon.Models.Calculators;
using StructureHelperCommon.Models.Parameters;
namespace StructureHelperTests.ViewModelTests
@@ -28,9 +29,9 @@ namespace StructureHelperTests.ViewModelTests
//Act
var vm = new GraphViewModel(array);
//Assert
Assert.IsNotNull(vm);
Assert.AreEqual(columnCount, vm.Series[0].XItems.Collection.Count());
Assert.AreEqual(columnCount, vm.Series[0].YItems.CollectionItems.Count());
Assert.That(vm, Is.Not.Null);
Assert.That(vm.Series[0].XItems.Collection.Count(), Is.EqualTo(columnCount));
Assert.That(vm.Series[0].YItems.CollectionItems.Count(), Is.EqualTo(columnCount));
}
}
}

View File

@@ -32,7 +32,7 @@ namespace StructureHelperTests.ViewModelTests
//Act
var vm = new PrimitivePropertiesViewModel(primitiveBase, new CrossSectionRepository());
//Assert
Assert.NotNull(vm);
Assert.That(vm, Is.Not.Null);
}
public void Circle_Run_ShouldPass()
@@ -46,7 +46,7 @@ namespace StructureHelperTests.ViewModelTests
//Act
var vm = new PrimitivePropertiesViewModel(primitiveBase, new CrossSectionRepository());
//Assert
Assert.NotNull(vm);
Assert.That(vm, Is.Not.Null);
}
[Test]
@@ -61,7 +61,7 @@ namespace StructureHelperTests.ViewModelTests
//Act
var vm = new PrimitivePropertiesViewModel(primitiveBase, new CrossSectionRepository());
//Assert
Assert.NotNull(vm);
Assert.That(vm, Is.Not.Null);
}
public void Reinforcement_Run_ShouldPass()
@@ -75,7 +75,7 @@ namespace StructureHelperTests.ViewModelTests
//Act
var vm = new PrimitivePropertiesViewModel(primitiveBase, new CrossSectionRepository());
//Assert
Assert.NotNull(vm);
Assert.That(vm, Is.Not.Null);
}
}
}