Beispiel #1
0
        public void Resolve_Using_Function()
        {
            var func = Substitute.For <Func <string, object> >();
            var sut  = new ResolveFromNameProxy <object>(func);

            sut.Resolve("foo");
            func.Received().Invoke("foo");
        }
Beispiel #2
0
        public void Be_Creatable()
        {
            Func <string, object> func = s => new object();
            var sut = new ResolveFromNameProxy <object>(func);

            sut.Should().NotBeNull();
            sut.Resolve("foo").Should().NotBeNull();
        }