Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
svn path=/branches/mono-2-2/mono-tools/; revision=119872
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Pouliot committed Nov 25, 2008
1 parent b400789 commit a07ecd7
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
Expand Up @@ -108,5 +108,26 @@ public void NonVisible ()
AssertRuleSuccess<VisibleType> ("get_Item", intint);
AssertRuleSuccess<VisibleType> ("get_Item", stringstring);
}

public class FakeLooksGood {
public string get_Item (int x)
{
return x.ToString ();
}
}

public class FakeLooksBad {
public string get_Item (int x, int y)
{
return (x - y).ToString ();
}
}

[Test]
public void NotSpecialName ()
{
AssertRuleDoesNotApply<FakeLooksGood> ("get_Item");
AssertRuleDoesNotApply<FakeLooksBad> ("get_Item");
}
}
}
Expand Up @@ -96,5 +96,26 @@ public void NonVisible ()
AssertRuleSuccess<NonVisibleType> ("get_Item", new Type [] { typeof (DateTime) });
AssertRuleSuccess<VisibleType> ("get_Item", new Type [] { typeof (DateTime) });
}

public class FakeLooksGood {
public string get_Item (int x)
{
return x.ToString ();
}
}

public class FakeLooksBad {
public string get_Item (DateTime dt)
{
return dt.ToString ();
}
}

[Test]
public void NotSpecialName ()
{
AssertRuleDoesNotApply<FakeLooksGood> ("get_Item");
AssertRuleDoesNotApply<FakeLooksBad> ("get_Item");
}
}
}

0 comments on commit a07ecd7

Please sign in to comment.