public void FindMasterInstances_sad_path() { TestUtility.AssertErrorIsLogged(196, graph => { string theInstanceName = "something"; var profile = new Profile("something"); profile.SetDefault(typeof(IGateway), new ReferencedInstance(theInstanceName)); profile.FindMasterInstances(graph); }); }
public void Log_104_if_instance_cannot_be_added_into_PluginFamily() { TestUtility.AssertErrorIsLogged(104, graph => { var family = new PluginFamily(typeof(IGateway), graph); var instance = new ConfiguredInstance(typeof(ColorRule)); Assert.IsFalse(typeof(Rule).CanBeCastTo(typeof(IGateway))); family.AddInstance(instance); family.Seal(); }); }