public void AssertXmlEncoded_ValidInput_NoExceptionThrown() { // Arrange var input = "MSH.1>MSH.2>"; // Arrange / Act / Assert Assert.DoesNotThrow( () => EncodingDetector.AssertXmlEncoded(input)); }
public void AssertXmlEncoded_InValidInput_ThrowsArgumentException(string input) { // Arrange / Act / Assert Assert.Throws <ArgumentException>( () => EncodingDetector.AssertXmlEncoded(input)); }