public void WcfParserDisposeAfterConstruction() { // Arrange, act and assert using (WcfParser sut = new WcfParser()) { } }
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); }
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); }
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)) { } }); }