public void Test_XYZ() { string[] coordinates = ReadFile(); var sut = new E102TriangleContainment(); Assert.False(sut.ContaingOrigion(coordinates[1])); }
public void Test_ABC() { string[] coordinates = ReadFile(); Assert.Equal(1000, coordinates.Length); var sut = new E102TriangleContainment(); Assert.True(sut.ContaingOrigion(coordinates[0])); }
public void Solution() { /* * find the number of triangles for which the interior contains the origin. * */ string[] coordinates = ReadFile(); var sut = new E102TriangleContainment(); Assert.Equal(228, sut.GetNumberOfTrianglesContaingOrigion(coordinates)); /* * Congratulations, the answer you gave to problem 102 is correct. * You are the 19200th person to have solved this problem. * This problem had a difficulty rating of 15% * */ }
public void Test_NotContaingOrigion(string coordinates) { var sut = new E102TriangleContainment(); Assert.False(sut.ContaingOrigion(coordinates)); }