예제 #1
0
        public void Test_If_Calculator_With_Starting_Value_Minus_2_Results_In_Minus_90()
        {
            //Arrange
            NumberCalculator numberCalculator = new NumberCalculator();

            //Assert
            Assert.AreEqual("-90", numberCalculator.CalculateMultipliedDreamValue(-2));
        }
예제 #2
0
        public void Test_If_Calculator_With_Starting_Value_0_Results_In_Insomnia()
        {
            //Arrange
            NumberCalculator numberCalculator = new NumberCalculator();

            //Assert
            Assert.AreEqual("Insomnia", numberCalculator.CalculateMultipliedDreamValue(0));
        }
예제 #3
0
파일: Test1.cs 프로젝트: BasenetBw/Domain
 public void Dispose()
 {
     nc = null;
 }
        public void Add_For1And2_Returns3()
        {
            NumberCalculator numberCalculator = new NumberCalculator();

            Assert.IsTrue(numberCalculator.Add(1, 2) == 3);
        }
예제 #5
0
파일: Test1.cs 프로젝트: BasenetBw/Domain
 public void Init()
 {
     nc = new NumberCalculator(100, 100);
 }