Esempio n. 1
0
 public void SetUp()
 {
     _testFramework    = Substitute.For <ITestFramework>();
     _mockingFramework = Substitute.For <IMockingFramework>();
     _context          = Substitute.For <IGenerationContext>();
     _testTypeNaming   = "TestValue455103231";
     _testClass        = new FrameworkSet(_testFramework, _mockingFramework, _context, _testTypeNaming);
 }
Esempio n. 2
0
        public FrameworkSet(ITestFramework testFramework, IMockingFramework mockingFramework, IGenerationContext context, string testTypeNaming)
        {
            if (string.IsNullOrWhiteSpace(testTypeNaming))
            {
                throw new ArgumentNullException(nameof(testTypeNaming));
            }

            TestFramework    = testFramework ?? throw new ArgumentNullException(nameof(testFramework));
            MockingFramework = mockingFramework ?? throw new ArgumentNullException(nameof(mockingFramework));
            Context          = context ?? throw new ArgumentNullException(nameof(context));
            TestTypeNaming   = testTypeNaming;
        }