Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
d41ed17a
Commit
d41ed17a
authored
Oct 10, 2012
by
csharptest
Committed by
rogerk
Oct 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed TestProtoFileDisablingClsComplianceFlags, see Issue 38: Disable CLSCompliant warnings
parent
7a030703
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
TestPreprocessing.cs
src/ProtoGen.Test/TestPreprocessing.cs
+0
-30
No files found.
src/ProtoGen.Test/TestPreprocessing.cs
View file @
d41ed17a
...
...
@@ -266,36 +266,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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment