public void ContractType_should_return_reference_to_itself() { var builder = new TypeDefaultConventionBuilder(typeof(string)); var reference = builder .ContractType <int>(); reference.ShouldBeSameAs(builder); }
public void ContractType_should_persist_type_in_contract_type_property() { var builder = new TypeDefaultConventionBuilder(typeof(string)); builder .ContractType <int>(); var convention = builder.GetConvention(); convention.ContractType.ShouldBeOfType <int>(); }
public void ContractType_should_persist_type_in_contract_type_property() { var builder = new TypeDefaultConventionBuilder(typeof(string)); builder .ContractType<int>(); var convention = builder.GetConvention(); convention.ContractType.ShouldBeOfType<int>(); }
public void ContractType_should_return_reference_to_itself() { var builder = new TypeDefaultConventionBuilder(typeof(string)); var reference = builder .ContractType<int>(); reference.ShouldBeSameAs(builder); }