예제 #1
0
        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);
        }
예제 #2
0
        public void SingleAsteroid()
        {
            // Arrange
            var directive = new CrashAsteroid(1);

            // Act
            Sut.ProcessDirective(directive);
            var analysis = Analyzer.Analyze();

            // Assert
            analysis.AverageTemperature
            .Should().Be(-28);
        }