Beispiel #1
0
        public void AddingNumbers()
        {
            //Arrange
            var mathSerive = new InMemorySportScoresService("Damian scores");

            mathSerive.AddNumber(12);
            mathSerive.AddNumber(0);
            mathSerive.AddNumber(6);
            //Act
            var actual = mathSerive.GetStatistics();

            //Assert
            Assert.Equal(12, actual.Max);
            Assert.Equal(0, actual.Min);
            Assert.Equal(6, actual.Avg);
        }
Beispiel #2
0
 private void GetSportSetName(InMemorySportScoresService sport, string name)
 {
     sport.Name = name;
 }
Beispiel #3
0
 private void GetSportSetNameRef(ref InMemorySportScoresService sport, string name)
 {
     sport = new InMemorySportScoresService(name);
 }