TestTransientMockProvider.cs 608 B

12345678910111213141516171819202122232425
  1. using NUnit.Framework;
  2. namespace Zenject.Tests.Other
  3. {
  4. [TestFixture]
  5. public class TestTransientMockProvider : ZenjectUnitTestFixture
  6. {
  7. public interface IFoo
  8. {
  9. int GetBar();
  10. }
  11. [Test]
  12. public void TestCase1()
  13. {
  14. // Commented out because this requires that zenject be installed with mocking support which isn't always the case
  15. //Container.FallbackProvider = new TransientMockProvider(Container);
  16. //var foo = Container.Resolve<IFoo>();
  17. //Assert.IsEqual(foo.GetBar(), 0);
  18. }
  19. }
  20. }