public void CreateWcfProxyType_BuildsProxyType() { var builder = new ServiceHostProxyBuilder(); var type = builder.CreateWcfProxyType(typeof(ValidType)); Assert.IsNotNull(type, "The generated type should not be null."); }
public void CreateWcfProxyType_BuildsProxyType() { var builder = new ServiceHostProxyBuilder(); var type = builder.CreateWcfProxyType(typeof(ValidType)); Assert.NotNull(type); }
public void CreateWcfProxyType_TypeNotAccessible() { var builder = new ServiceHostProxyBuilder(); Assert.Throws <GeneratorException>(() => builder.CreateWcfProxyType(typeof(PrivateType))); }
public void CreateWcfProxyType_TypeIsGeneric() { var builder = new ServiceHostProxyBuilder(); Assert.Throws <GeneratorException>(() => builder.CreateWcfProxyType(typeof(GenericType <>))); }
public void CreateWcfProxyType_NullTypeToProxy() { var builder = new ServiceHostProxyBuilder(); Assert.Throws <ArgumentNullException>(() => builder.CreateWcfProxyType(null)); }