From 7e48ac3d89346175912c8540b9f67fea1fed117a Mon Sep 17 00:00:00 2001 From: Will Fuqua Date: Sat, 3 Sep 2011 14:24:58 -0400 Subject: [PATCH] Change tab text from "WCF Binary XML" to "WCF Binary" Remove test proj due to VS2010 Pro requirement --- BinaryMessageFiddlerExtension.sln | 21 +----- BinaryMessageFiddlerExtension.vsmdi | 6 -- .../BinaryRequestInspector.cs | 4 +- .../BinaryResponseInspector.cs | 2 +- .../Release/BinaryMessageFiddlerExtension.dll | Bin 43520 -> 43520 bytes Local.testsettings | 10 --- README.md | 2 +- TraceAndTestImpact.testsettings | 9 --- UnitTests/Properties/AssemblyInfo.cs | 35 --------- UnitTests/TestRawBinaryInspector.cs | 66 ----------------- UnitTests/UnitTests.csproj | 69 ------------------ 11 files changed, 8 insertions(+), 216 deletions(-) delete mode 100644 BinaryMessageFiddlerExtension.vsmdi delete mode 100644 Local.testsettings delete mode 100644 TraceAndTestImpact.testsettings delete mode 100644 UnitTests/Properties/AssemblyInfo.cs delete mode 100644 UnitTests/TestRawBinaryInspector.cs delete mode 100644 UnitTests/UnitTests.csproj diff --git a/BinaryMessageFiddlerExtension.sln b/BinaryMessageFiddlerExtension.sln index b548272..9b0fda8 100644 --- a/BinaryMessageFiddlerExtension.sln +++ b/BinaryMessageFiddlerExtension.sln @@ -1,21 +1,9 @@  Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 +# Visual C# Express 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BinaryMessageFiddlerExtension", "BinaryMessageFiddlerExtension\BinaryMessageFiddlerExtension.csproj", "{F6AD8210-981D-42D9-B8FA-0970FD41DBE5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\UnitTests.csproj", "{FCF8B7A4-B638-4BA0-B6A0-5BBE454B3FBA}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5D430BF3-2F46-40FC-B10B-0726BC8517F6}" - ProjectSection(SolutionItems) = preProject - BinaryMessageFiddlerExtension.vsmdi = BinaryMessageFiddlerExtension.vsmdi - Local.testsettings = Local.testsettings - TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings - EndProjectSection -EndProject Global - GlobalSection(TestCaseManagementSettings) = postSolution - CategoryFile = BinaryMessageFiddlerExtension.vsmdi - EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU @@ -25,12 +13,11 @@ Global {F6AD8210-981D-42D9-B8FA-0970FD41DBE5}.Debug|Any CPU.Build.0 = Debug|Any CPU {F6AD8210-981D-42D9-B8FA-0970FD41DBE5}.Release|Any CPU.ActiveCfg = Release|Any CPU {F6AD8210-981D-42D9-B8FA-0970FD41DBE5}.Release|Any CPU.Build.0 = Release|Any CPU - {FCF8B7A4-B638-4BA0-B6A0-5BBE454B3FBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FCF8B7A4-B638-4BA0-B6A0-5BBE454B3FBA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FCF8B7A4-B638-4BA0-B6A0-5BBE454B3FBA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FCF8B7A4-B638-4BA0-B6A0-5BBE454B3FBA}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(TestCaseManagementSettings) = postSolution + CategoryFile = BinaryMessageFiddlerExtension.vsmdi + EndGlobalSection EndGlobal diff --git a/BinaryMessageFiddlerExtension.vsmdi b/BinaryMessageFiddlerExtension.vsmdi deleted file mode 100644 index d889a26..0000000 --- a/BinaryMessageFiddlerExtension.vsmdi +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/BinaryMessageFiddlerExtension/BinaryRequestInspector.cs b/BinaryMessageFiddlerExtension/BinaryRequestInspector.cs index db7d02a..06c1bd0 100644 --- a/BinaryMessageFiddlerExtension/BinaryRequestInspector.cs +++ b/BinaryMessageFiddlerExtension/BinaryRequestInspector.cs @@ -13,14 +13,14 @@ public class BinaryRequestInspector : Inspector2, IRequestInspector2 private bool isReadOnly; private XmlTreeView viewControl; // read-only tree view of xml private TextBox editControl; // writeable text area of xml - + private byte[] binaryContent; private static Logger log = new Logger(true); public override void AddToTab(TabPage o) { - o.Text = "WCF Binary XML"; + o.Text = "WCF Binary"; isReadOnly = true; diff --git a/BinaryMessageFiddlerExtension/BinaryResponseInspector.cs b/BinaryMessageFiddlerExtension/BinaryResponseInspector.cs index 0285d5a..db2dfc8 100644 --- a/BinaryMessageFiddlerExtension/BinaryResponseInspector.cs +++ b/BinaryMessageFiddlerExtension/BinaryResponseInspector.cs @@ -18,7 +18,7 @@ public class BinaryResponseInspector : Inspector2, IResponseInspector2 public override void AddToTab(TabPage o) { - o.Text = "WCF Binary XML"; + o.Text = "WCF Binary"; viewControl = new XmlTreeView(); viewControl.BackColor = CONFIG.colorDisabledEdit; diff --git a/BinaryMessageFiddlerExtension/bin/Release/BinaryMessageFiddlerExtension.dll b/BinaryMessageFiddlerExtension/bin/Release/BinaryMessageFiddlerExtension.dll index 81431b96ea2688c87ba106fe865eebd8151a127c..cee9291d2fa7a8e0198a17bc714550b800399d58 100644 GIT binary patch delta 6172 zcmYk=3s6*57{Kv!7g$6EL0AzNffWHsd|)bS7N98L3xNm?6v))f61Zl?m|ap(%SYn% zQQ{*Z$48c9WY5tgGj+j!aXocsqO*z6JjW`)RUgFzkXyd2M(OHc@DV zkHDwkbMO^7)g}jL!zJ)CxZY;Sf~_c=hHt_5;6OiFn*^_bmA~{1g)@9Mthc??7g%nB zLjq)R415X>v`f!yxCX9=Ux$xaHhjPPA5r)Zb_U7;X>cLD3|HV`R?mJwli=$4bFwDVH4g1H^Yu#c^8w+tKA%F#nCQYNcw@0LL8|9!dX-$RG;0pLTcop0L?}v}U z$G!Fry>XL$Ma#4<`(ho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#M?;2zj% z4vv^aD0m7>*2Fu`$ub* zQ;M44^RQ#0)YQT6!>&}Rc^)2~CizY9OtAC#K6`9{AtztCJ!% zhQ7)b3G}SV;!ojyKa%_`x40bM4^PXGnriqd_?3V|qqPSM1Mrt{d!{t?WQqR)KQcw~ zYO45ma2I^lKrje9vt_dfE`>M3E%5X3S-2nmU&w}koF?YTVP4n=Z-krSn{e5WrH>Cj z4(H@b&9Pi%M81Q$@?_xGGKLekGufayq{nF?toKztB z$?$x*9DW#n7JeCi7ydlx;QWs(l*6*&Iq(*^8~yJl-@~it zNYkxwJKPPQgHyb+Hxn)t8~PFn^a1!wxN@#Es)o10pTL9g53qBd^zj57n*WQj@DN-F zzX6Y$FO8gVE<6vegzMlY13?>n9KHw-!SN5slgNUfgS+4p@P{D>=D)W{8f}7KfE_=T znjE+a-V9%b6Bfwc+3>;znEw@6sDU@Y27DMk4|^BNVKwj>_+rG?{2z)0c0Hk3HgAF( z;bZVE*ij;TXTX(kGi>@Dp8v07;S)Gvku+The+)mqSZY3ltCvXrFYphr;VqS-O1Kd| z0QbU|;M?%xrP6Z+dzdb$hoA8J5Rd@)FDwl)D!s&1eJXmhX2H%6? zH(}Q@$?t;y3;Qah<}`d8_AHm0%CPgA`V=@H?u1Xmah0;y4d=sq;FAG| z=KrMCvUxXr9iChzHQDfVcrIKHuZDjK?=TSThr8iF!{^{@@K^91c*Gic(kbwikOT9- z2n);MpTiCCcKB&{4}1_l3I7$ovIg`2b1eJ^R@L$fM#FhkU>i*i7Hr`$hWLXvdQ^O1V~4sBw)- zjkd0_yB4k}DY70jdlTLFJ5roJ^?+KS($suaryf=7m984CXq75eOM2IPH`a_UPRsdi z%m>cmH~Nx)Ve3CJz4z}2pNz`3F6S?`x+t4<|D$#P^*h$RQ>kSYMHM&J?45J!@NX8q zR=ab4?bm&+W@~5nm^Icl|L|?Q-)SA`Nw$VF*42OWXI=Yy - - These are default test settings for a local test run. - - - - - - - \ No newline at end of file diff --git a/README.md b/README.md index 2aa7c47..92778aa 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This is a modification of the [WCF Binary Message Inspector](http://archive.msdn Installation ------------ -Copy the file `BinaryMessageFiddlerExtension/bin/Release/BinaryMessageFiddlerExtension.dll` into `C:\Program Files\Fiddler2\Inspectors` and restart Fiddler. The inspector is titled "WCF Binary XML." +Copy the file `BinaryMessageFiddlerExtension/bin/Release/BinaryMessageFiddlerExtension.dll` into `C:\Program Files\Fiddler2\Inspectors` and restart Fiddler. The inspector is titled "WCF Binary" Tree View Usage --------------- diff --git a/TraceAndTestImpact.testsettings b/TraceAndTestImpact.testsettings deleted file mode 100644 index dfd14ac..0000000 --- a/TraceAndTestImpact.testsettings +++ /dev/null @@ -1,9 +0,0 @@ - - - These are test settings for Trace and Test Impact. - - - - - - \ No newline at end of file diff --git a/UnitTests/Properties/AssemblyInfo.cs b/UnitTests/Properties/AssemblyInfo.cs deleted file mode 100644 index f1d25a8..0000000 --- a/UnitTests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("UnitTests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("UnitTests")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2011")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("0dc5e33f-3f4e-4670-90a6-f5e87660f3fa")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/UnitTests/TestRawBinaryInspector.cs b/UnitTests/TestRawBinaryInspector.cs deleted file mode 100644 index 52f5cd8..0000000 --- a/UnitTests/TestRawBinaryInspector.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System.Windows.Forms; -using BinaryMessageFiddlerExtension; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace UnitTests -{ - /// - /// Summary description for UnitTest1 - /// - [TestClass] - public class TestRawBinaryInspector - { - readonly RawBinaryInspector rawBinInspector; - - public TestRawBinaryInspector() - { - rawBinInspector = new RawBinaryInspector { _myControl = new TextBox() }; - rawBinInspector._myControl.Text = "http://tempuri.org/IEncounterWCFService/GetEncounterurn:uuid:fa9d4b23-eae2-4487-9bbc-19041fcc6318http://www.w3.org/2005/08/addressing/anonymoushttp://emr.local.wellmed.net/service/EncounterWCFService.svca87b775c-1377-4142-8899-bda093e7795d"; - } - - private TestContext testContextInstance; - - #region Additional test attributes - // - // You can use the following additional attributes as you write your tests: - // - // Use ClassInitialize to run code before running the first test in the class - // [ClassInitialize()] - // public static void MyClassInitialize(TestContext testContext) { } - // - // Use ClassCleanup to run code after all tests in a class have run - // [ClassCleanup()] - // public static void MyClassCleanup() { } - // - // Use TestInitialize to run code before running each test - // [TestInitialize()] - // public void MyTestInitialize() { } - // - // Use TestCleanup to run code after each test has run - // [TestCleanup()] - // public void MyTestCleanup() { } - // - #endregion - - [TestMethod] - public void testTextChanged() - { - rawBinInspector._myControl.Text = "http://tempuri.org/IEncounterWCFService/GetEncounterurn:uuid:fa9d4b23-eae2-4487-9bbc-19041fcc6318http://www.w3.org/2005/08/addressing/anonymoushttp://emr.local.wellmed.net/service/EncounterWCFService.svca87b775c-1377-4142-8899-bda093e7795d"; - rawBinInspector.TextChanged(new object(), new System.EventArgs()); - } - - [TestMethod] - public void testTextChanged_EmptyXml() - { - rawBinInspector._myControl.Text = ""; - rawBinInspector.TextChanged(new object(), new System.EventArgs()); - } - - [TestMethod] - public void testTextChanged_BadXml() - { - rawBinInspector._myControl.Text = "http://tempuri.org/IEncounterWCFService/GetEncounterurn:uuid:fa9d4b23-eae2-4487-9bbc-19041fcc6318http://www.w3.org/2005/08/addressing/anonymoushttp://emr.local.wellmed.net/service/EncounterWCFService.svca87b775c-1377-4142-8899-bda093e7795d"; - rawBinInspector.TextChanged(new object(), new System.EventArgs()); - } - } -} diff --git a/UnitTests/UnitTests.csproj b/UnitTests/UnitTests.csproj deleted file mode 100644 index 5ef15bc..0000000 --- a/UnitTests/UnitTests.csproj +++ /dev/null @@ -1,69 +0,0 @@ - - - - Debug - AnyCPU - - - 2.0 - {FCF8B7A4-B638-4BA0-B6A0-5BBE454B3FBA} - Library - Properties - UnitTests - UnitTests - v4.0 - 512 - {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\..\..\..\Program Files (x86)\Fiddler2\Fiddler.exe - - - - - 3.5 - - - - - - False - - - - - - - - - {F6AD8210-981D-42D9-B8FA-0970FD41DBE5} - BinaryMessageFiddlerExtension - - - - - \ No newline at end of file