public void CalculateName_Should_Return_Correct_Name_Tests(Vertex v1, Vertex v2, Vertex v3, string expected) { //Arrange var triangle = new TriangleFactory().Create(v1, v2, v3); //Act var actual = triangle.CalculateName(); //Assert Assert.That(actual, Does.Contain(expected)); }
public void CalculateName_Should_Return_Correct_Name_RegardlessOfOrder_Tests(Vertex v1, Vertex v2, Vertex v3, string expected) { //Arrange var triangle = new TriangleFactory().Create(v1, v2, v3); //Act var actual = triangle.CalculateName(); //Assert Assert.That(actual.Contains(expected), "v1, v2, v3"); //Arrange triangle = new TriangleFactory().Create(v1, v3, v2); //Act actual = triangle.CalculateName(); //Assert Assert.That(actual.Contains(expected), "v1, v3, v2"); //Arrange triangle = new TriangleFactory().Create(v2, v3, v1); //Act actual = triangle.CalculateName(); //Assert Assert.That(actual.Contains(expected), "v2, v3, v1"); //Arrange triangle = new TriangleFactory().Create(v2, v1, v3); //Act actual = triangle.CalculateName(); //Assert Assert.That(actual.Contains(expected), "v2, v1, v3"); //Arrange triangle = new TriangleFactory().Create(v3, v2, v1); //Act actual = triangle.CalculateName(); //Assert Assert.That(actual.Contains(expected), "v3, v2, v1"); //Arrange triangle = new TriangleFactory().Create(v3, v1, v2); //Act actual = triangle.CalculateName(); //Assert Assert.That(actual.Contains(expected), "v3, v1, v2"); }