public void ParseAlternativeFormFullName_Returns_Expected_Result(string altnernativeFormFullName, string expectedClassName, string expectedFormName) { var result = AlternativeFormNameHelper.ParseAlternativeFormFullName(altnernativeFormFullName); Assert.AreEqual(expectedClassName, result.ClassName); Assert.AreEqual(expectedFormName, result.FormName); }
public void ParseAlternativeFormFullName_ShouldThrow_ArgumentNullException() { Assert.That(() => AlternativeFormNameHelper.ParseAlternativeFormFullName(null), Throws.TypeOf <ArgumentNullException>()); }
public void ParseAlternativeFormFullName_ShouldThrow_ArgumentException_If_No_Delimiter() { Assert.That(() => AlternativeFormNameHelper.ParseAlternativeFormFullName("ab"), Throws.TypeOf <ArgumentException>()); }
public void ParseAlternativeFormFullName_ShouldThrow_ArgumentException_If_Empty() { Assert.That(() => AlternativeFormNameHelper.ParseAlternativeFormFullName(string.Empty), Throws.TypeOf <ArgumentException>()); }