示例#1
0
        public void Should_indicate_if_contains_any_of_type(
            [Values(true, false)] bool any,
            [Values(true, false)] bool instance)
        {
            _plugins.Append(Plugin <IPluginType> .Create <Plugin1>());

            if (any)
            {
                _plugins.Append(instance
                    ? Plugin <IPluginType> .Create(new Plugin2())
                    : Plugin <IPluginType> .Create <Plugin2>());
            }

            _plugins.AnyOfType(typeof(Plugin2)).ShouldEqual(any);
        }