public void BShapeWithValidMembers_WhenCheckedIfCreateValid_IsTrue() { //Arrange: A entry with valid members is constructed. BShape shape = new BShape { Json="Json"}; //Act: the shape is checked to be create valid. bool valid = shape.CreateValid(); //Assert: the shape is create valid. Assert.AreEqual(true, valid); }
public void BShapeWithInvalidMembers_WhenCheckedIfCreateValid_IsFalse() { //Arrange: A entry with invalid members is constructed. BShape shape = new BShape { Json = null }; //Act: the shape is checked to be create valid. bool valid = shape.CreateValid(); //Assert: the shape is not create valid. Assert.AreEqual(false, valid); }