public void WcfParserDisposeAfterConstruction()
 {
     // Arrange, act and assert
     using (WcfParser sut = new WcfParser())
     {
     }
 }
示例#2
0
        internal static IFormatParser CreateWcfFormatParserFromString(bool clientTrace, bool serviceTrace, params string[] segments)
        {
            IFormatParser formatParser = new WcfParser();

            formatParser.Setup(BuildFile(string.Concat(segments)), "in memory", clientTrace, serviceTrace);
            return(formatParser);
        }
示例#3
0
        internal static Parser CreateWcfParserFromFile(string fileName, bool clientTrace, bool serviceTrace, SoapActionMode soapActionMode, params string[] soapActions)
        {
            Parser ans;

            LastTraceFileOpened = Parser.OpenTraceFile(fileName);
            IFormatParser formatParser = new WcfParser();

            formatParser.Setup(LastTraceFileOpened, fileName, clientTrace, serviceTrace);

            ans = new Parser(formatParser, soapActionMode, soapActions);

            return(ans);
        }
示例#4
0
        public void UTILCreateConfiguredTypeThrowsExceptionIfTypeDoesNotMatch()
        {
            // Arrange
            typeType t = new typeType();

            t.assembly = TestHelper.LibraryAssembly;
            t.type     = "Microsoft.WcfUnit.Library.FiddlerTextParser";

            // Act and assert
            TestHelper.TestForUserException(
                delegate
            {
                using (WcfParser dummy = Utility.CreateConfiguredType <WcfParser>(t))
                {
                }
            });
        }