|
|
@ -34,7 +34,7 @@ public class UnitTests
|
|
|
|
//execute the method to test
|
|
|
|
//execute the method to test
|
|
|
|
bool result = await mgr.AddNewNounours(nounours);
|
|
|
|
bool result = await mgr.AddNewNounours(nounours);
|
|
|
|
|
|
|
|
|
|
|
|
//assert the interactions went correctly
|
|
|
|
//assert the result is correct
|
|
|
|
Assert.True(result);
|
|
|
|
Assert.True(result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -72,7 +72,7 @@ public class UnitTests
|
|
|
|
//execute the method to test
|
|
|
|
//execute the method to test
|
|
|
|
bool result = await mgr.AddNewNounours(nounours);
|
|
|
|
bool result = await mgr.AddNewNounours(nounours);
|
|
|
|
|
|
|
|
|
|
|
|
//assert the interactions went correctly
|
|
|
|
//assert the result is correct
|
|
|
|
Assert.False(result);
|
|
|
|
Assert.False(result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -110,7 +110,7 @@ public class UnitTests
|
|
|
|
//execute the method to test
|
|
|
|
//execute the method to test
|
|
|
|
bool result = await mgr.AddNewNounours(nounours);
|
|
|
|
bool result = await mgr.AddNewNounours(nounours);
|
|
|
|
|
|
|
|
|
|
|
|
//assert the interactions went correctly
|
|
|
|
//assert the result is correct
|
|
|
|
Assert.False(result);
|
|
|
|
Assert.False(result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|