Example #1
0
 public void AsString_4b()
 {
     var identifierOptions = new ConversionOptions
     {
         StaticMemberConversion = StaticMemberConversion.ParentTypeFullName
     };
     Assert.That(Identifier.ToString(() => TestClass.StaticProperty, identifierOptions), Is.EqualTo(string.Format("{0}.StaticProperty", typeof(TestClass).FullName)));
 }
Example #2
0
 public void AsString_3a()
 {
     var identifierOptions = new ConversionOptions
     {
         StaticMemberConversion = StaticMemberConversion.ParentTypeName
     };
     Assert.That(Identifier.ToString(() => StaticTestProperty, identifierOptions), Is.EqualTo(string.Format("{0}.StaticTestProperty", typeof(IdentifierTests).Name)));
 }