public void CrashingAsteroidTest(int times, int averageTemperature) { // Arrange var directive = new CrashAsteroid(times); // Act Sut.ProcessDirective(directive); var analysis = Analyzer.Analyze(); // Assert analysis.AverageTemperature .Should().Be(averageTemperature); }
public void SingleAsteroid() { // Arrange var directive = new CrashAsteroid(1); // Act Sut.ProcessDirective(directive); var analysis = Analyzer.Analyze(); // Assert analysis.AverageTemperature .Should().Be(-28); }