public void TestPrepareCast() { string proxyAssemblyName = "DuckInterfaceProxy_" + typeof(IPrepareCastInterface).Name.Replace(".", "_").Replace("+", "-") + "_" + typeof(PrepareCastDuck).Name.Replace(".", "_").Replace("+", "-") + ".dll"; Assert.IsNull(FindAssembly(proxyAssemblyName), "Proxy assembly has already been generated, so PrepareCast test cannot be done."); DuckTyping.PrepareCast <IPrepareCastInterface, PrepareCastDuck>(); Assert.IsNotNull(FindAssembly(proxyAssemblyName), "PrepareCast did not result in a proxy assembly being generated."); }