public void TestCreateNameField() { var decorator = new VersionInformationServiceDecorator(); var codeMemberField = decorator.CreateNameField(CreateService()); Assert.AreEqual(VersionInformationServiceDecorator.NameName, codeMemberField.Name); Assert.AreEqual(Name, GetReturnPrimitiveValue(codeMemberField)); }
public void TestCreateNameField() { var decorator = new VersionInformationServiceDecorator(); var codeMemberField = decorator.CreateNameField(CreateService()); Assert.AreEqual(VersionInformationServiceDecorator.NameName, codeMemberField.Name); Assert.AreEqual(Name, ((CodePrimitiveExpression) codeMemberField.InitExpression).Value); }