You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
@ -38,7 +38,6 @@ namespace MonoTests.System.CodeDom
|
||||
[TestFixture]
|
||||
public class CodeGotoStatementTest
|
||||
{
|
||||
#if NET_2_0
|
||||
[Test]
|
||||
public void Constructor0 ()
|
||||
{
|
||||
@ -69,7 +68,6 @@ namespace MonoTests.System.CodeDom
|
||||
cgs.Label = label;
|
||||
Assert.AreSame (label, cgs.Label, "#13");
|
||||
}
|
||||
#endif
|
||||
|
||||
[Test]
|
||||
public void Constructor1 ()
|
||||
@ -80,13 +78,11 @@ namespace MonoTests.System.CodeDom
|
||||
Assert.IsNotNull (cgs.Label, "#1");
|
||||
Assert.AreSame (label1, cgs.Label, "#2");
|
||||
|
||||
#if NET_2_0
|
||||
Assert.IsNotNull (cgs.StartDirectives, "#3");
|
||||
Assert.AreEqual (0, cgs.StartDirectives.Count, "#4");
|
||||
|
||||
Assert.IsNotNull (cgs.EndDirectives, "#5");
|
||||
Assert.AreEqual (0, cgs.EndDirectives.Count, "#6");
|
||||
#endif
|
||||
|
||||
Assert.IsNotNull (cgs.UserData, "#7");
|
||||
Assert.AreEqual (typeof(ListDictionary), cgs.UserData.GetType (), "#8");
|
||||
@ -100,53 +96,31 @@ namespace MonoTests.System.CodeDom
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if NET_2_0
|
||||
[ExpectedException (typeof (ArgumentNullException))]
|
||||
#endif
|
||||
public void Constructor1_NullLabel ()
|
||||
{
|
||||
CodeGotoStatement cgs = new CodeGotoStatement ((string) null);
|
||||
#if ONLY_1_1
|
||||
Assert.IsNull (cgs.Label, "#1");
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if NET_2_0
|
||||
[ExpectedException (typeof (ArgumentNullException))]
|
||||
#endif
|
||||
public void Constructor1_EmptyLabel () {
|
||||
CodeGotoStatement cgs = new CodeGotoStatement (string.Empty);
|
||||
#if ONLY_1_1
|
||||
Assert.IsNotNull (cgs.Label, "#1");
|
||||
Assert.AreEqual (string.Empty, cgs.Label, "#2");
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if NET_2_0
|
||||
[ExpectedException (typeof (ArgumentNullException))]
|
||||
#endif
|
||||
public void Label_Null ()
|
||||
{
|
||||
CodeGotoStatement cgs = new CodeGotoStatement ("mono");
|
||||
cgs.Label = null;
|
||||
#if ONLY_1_1
|
||||
Assert.IsNull (cgs.Label, "#1");
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if NET_2_0
|
||||
[ExpectedException (typeof (ArgumentNullException))]
|
||||
#endif
|
||||
public void Label_Empty () {
|
||||
CodeGotoStatement cgs = new CodeGotoStatement ("mono");
|
||||
cgs.Label = string.Empty;
|
||||
#if ONLY_1_1
|
||||
Assert.IsNotNull (cgs.Label, "#1");
|
||||
Assert.AreEqual (string.Empty, cgs.Label, "#2");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user