Example #1
0
        private void Test(string path, bool isStub, string stubType)
        {
            var options = new NamingOptions();
            var parser = new StubResolver(options, new NullLogger());

            var result = parser.ResolveFile(path);

            Assert.AreEqual(isStub, result.IsStub);

            if (stubType == null)
            {
                Assert.IsNull(result.StubType);
            }
            else
            {
                Assert.AreEqual(stubType, result.StubType, true, CultureInfo.InvariantCulture);
            }
        }