Ejemplo n.º 1
0
        public void Acceptance()
        {
            Resolver.Clear();
            Resolver.Add <int>(() => 1);
            Resolver.Add <Uri>(() => new Uri("http://localhost:8080"));

            var i   = Resolver.Get <int>();
            var uri = Resolver.Get <Uri>();

            Assert.AreEqual("http://localhost:8080/", uri.AbsoluteUri);

            Assert.Throws <ApplicationException>(() => Resolver.Get <double>());
        }