diff options
author | csharptest <roger@csharptest.net> | 2012-10-10 17:04:35 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2012-10-10 17:04:35 -0500 |
commit | d41ed17a0699a9f54f9a06cc0a000cc5a218e0cd (patch) | |
tree | f710ce36b6040040a2dddd7d8dad55a2625d169b /src/ProtoGen.Test | |
parent | 7a030703dbb1b87f969d8d43c92d1884ef050f70 (diff) | |
download | protobuf-d41ed17a0699a9f54f9a06cc0a000cc5a218e0cd.tar.gz protobuf-d41ed17a0699a9f54f9a06cc0a000cc5a218e0cd.tar.bz2 protobuf-d41ed17a0699a9f54f9a06cc0a000cc5a218e0cd.zip |
Removed TestProtoFileDisablingClsComplianceFlags, see Issue 38: Disable CLSCompliant warnings
Diffstat (limited to 'src/ProtoGen.Test')
-rw-r--r-- | src/ProtoGen.Test/TestPreprocessing.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/ProtoGen.Test/TestPreprocessing.cs b/src/ProtoGen.Test/TestPreprocessing.cs index 188f26dd..8b3b0663 100644 --- a/src/ProtoGen.Test/TestPreprocessing.cs +++ b/src/ProtoGen.Test/TestPreprocessing.cs @@ -267,36 +267,6 @@ message " + }
[Test]
- public void TestProtoFileDisablingClsComplianceFlags()
- {
- string test = new StackFrame(false).GetMethod().Name;
- Setup();
- using (TempFile source = TempFile.Attach(test + ".cs"))
- using (
- ProtoFile proto = new ProtoFile(test + ".proto",
- @"
-package nunit.simple;
-// Test a very simple message.
-message MyMessage {
- optional uint32 name = 1;
-} ")
- )
- {
- //CS3021: Warning as Error: xx does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute
- RunProtoGen(0, proto.TempPath);
- RunCsc(1, source.TempPath, "/warnaserror+");
- //Now we know it fails, make it pass by turning off cls_compliance generation
- RunProtoGen(0, proto.TempPath, "-cls_compliance:false");
- Assembly a = RunCsc(0, source.TempPath, "/warnaserror+");
- //assert that the message type is in the expected namespace
- Type t = a.GetType("nunit.simple.MyMessage", true, true);
- Assert.IsTrue(typeof(IMessage).IsAssignableFrom(t), "Expect an IMessage");
- //assert that we can find the static descriptor type
- a.GetType("nunit.simple." + test, true, true);
- }
- }
-
- [Test]
public void TestProtoFileWithNewExtension()
{
string test = new StackFrame(false).GetMethod().Name;
|