public void FindSystemsTotalEnergyAfter1000Steps() { var exampleLoader = new ExampleLoader("Input.txt"); var system = exampleLoader.System; system.Simulate(1000); Assert.Equal(12053, system.TotalEnergy); }
public void Example1Test() { var exampleLoader = new ExampleLoader("Example1.txt"); var system = exampleLoader.System; Assert.Equal(exampleLoader.ExpectedSystemStateOnStep[0], system.Moons); for (int i = 1; i <= 10; i++) { system.Simulate(); Assert.Equal(exampleLoader.ExpectedSystemStateOnStep[i], system.Moons); } Assert.Equal(179, system.TotalEnergy); }