GetKey() public method

public GetKey ( MethodInfo method ) : string
method System.Reflection.MethodInfo
return string
Beispiel #1
0
 public void Can_get_same_key_as_in_xmldoc()
 {
     var helpXml = new HelpXmlDocumentation();
     var _global = typeof(FullConfiguration).GetMethods().Single(m=>m.Name.EndsWith("Global") && m.Name.StartsWithIC("set"));
     Assert.That(helpXml.GetKey(_global), Is.EqualTo("P:Isop.Tests.FakeConfigurations.FullConfiguration.Global"));
     var action1 = typeof(DescriptionWithCommentsController).GetMethods().Single(m=>m.Name.Equals("Action1"));
     Assert.That(helpXml.GetKey(action1), Is.EqualTo("M:Isop.Tests.FakeControllers.DescriptionWithCommentsController.Action1"));
 }
Beispiel #2
0
 [Test] public void Can_get_same_key_as_in_xmldoc()
 {
     var helpXml = new HelpXmlDocumentation();
     var _global = typeof(FullConfiguration).GetMethods().MatchGet("Global");
     Assert.That(helpXml.GetKey(_global.MethodInfo), Is.EqualTo("P:Isop.Tests.FakeConfigurations.FullConfiguration.Global"));
     var action1 = typeof(DescriptionWithCommentsController).GetMethods().Match(name:"Action1");
     Assert.That(helpXml.GetKey(action1), Is.EqualTo("M:Isop.Tests.FakeControllers.DescriptionWithCommentsController.Action1"));
     
 }