Beispiel #1
0
        public void ExpectedFormattedFileShouldBeOptional()
        {
            File.Delete(Path.Combine(_testCasesDirectory, "expected-formatted.json"));
            var firstTestCase = TestCaseProvider.GetTestCases(_baseDirectory).First();

            Assert.IsNull(firstTestCase.ExpectedFormatted);
        }
Beispiel #2
0
        public void SettingsFileShouldBeOptional()
        {
            File.Delete(Path.Combine(_testCasesDirectory, "settings.ini"));
            var firstTestCase = TestCaseProvider.GetTestCases(_baseDirectory).First();

            Assert.AreEqual(typeof(object), firstTestCase.SerializedType);
        }
Beispiel #3
0
        public void ShouldGetSerializedTypeFromTypeHint()
        {
            var firstTestCase = TestCaseProvider.GetTestCases(_baseDirectory).First();

            Assert.AreEqual(ExpectedSerializedType, firstTestCase.SerializedType);
        }
Beispiel #4
0
        public void ShouldFindName()
        {
            var firstTestCase = TestCaseProvider.GetTestCases(_baseDirectory).First();

            Assert.AreEqual(ExpectedFirstName, firstTestCase.Name);
        }
Beispiel #5
0
        public void ShouldFindFormattedExpected()
        {
            var firstTestCase = TestCaseProvider.GetTestCases(_baseDirectory).First();

            Assert.AreEqual(ExpectedFormatted, firstTestCase.ExpectedFormatted);
        }
Beispiel #6
0
        public void ShouldFindCompactExpected()
        {
            var firstTestCase = TestCaseProvider.GetTestCases(_baseDirectory).First();

            Assert.AreEqual(ExpectedCompact, firstTestCase.ExpectedCompact);
        }
Beispiel #7
0
        public void ShouldFindInput()
        {
            var firstTestCase = TestCaseProvider.GetTestCases(_baseDirectory).First();

            Assert.AreEqual(ExpectedFirstInput, firstTestCase.Input);
        }
Beispiel #8
0
        public void ShouldFindTestCasesRecursively()
        {
            var testCases = TestCaseProvider.GetTestCases(_baseDirectory);

            Assert.AreEqual(2, testCases.Count());
        }