예제 #1
0
        public void AssertXmlEncoded_ValidInput_NoExceptionThrown()
        {
            // Arrange
            var input = "MSH.1>MSH.2>";

            // Arrange / Act / Assert
            Assert.DoesNotThrow(
                () => EncodingDetector.AssertXmlEncoded(input));
        }
예제 #2
0
 public void AssertXmlEncoded_InValidInput_ThrowsArgumentException(string input)
 {
     // Arrange / Act / Assert
     Assert.Throws <ArgumentException>(
         () => EncodingDetector.AssertXmlEncoded(input));
 }