public void NameSetter_objectNamePropertyShouldBeTheSameAsInput_ifThePassedStringIsNotNullOrEmpty() { string expectedNameValue = "course name"; INameable testBaseObject = new BaseNameableObject(expectedNameValue); var actualNameValue = testBaseObject.Name; Assert.AreEqual(expectedNameValue, actualNameValue); }
public void NameSetter_shouldThrow_ifPassedValueIsAnEmptyString() { string testNameValue = string.Empty; INameable testBaseObject = new BaseNameableObject(testNameValue); }
public void NameSetter_shouldThrow_ifPassedValueIsANullString() { string testNameValue = null; INameable testBaseObject = new BaseNameableObject(testNameValue); }