public void TestCreateUriField() { var decorator = new VersionInformationServiceDecorator(); var codeMemberField = decorator.CreateUriField(CreateService()); Assert.AreEqual(VersionInformationServiceDecorator.BaseUriName, codeMemberField.Name); Assert.AreEqual(BaseUri.ToString(), GetReturnPrimitiveValue(codeMemberField)); }
public void TestCreateUriField() { var decorator = new VersionInformationServiceDecorator(); var codeMemberField = decorator.CreateUriField(CreateService()); Assert.AreEqual(VersionInformationServiceDecorator.BaseUriName, codeMemberField.Name); Assert.AreEqual(BaseUri.ToString(), ((CodePrimitiveExpression) codeMemberField.InitExpression).Value); }