Example #1
0
        public void TestGetUnsupportedMethods()
        {
            var provider = new ProviderStub();
            List<UnsupportedMethod> unsupportedMethods = provider.GetUnsupportedMethods().ToList();

            UnsupportedMethod dropTable = unsupportedMethods.Find(m => m.Name == "DropTable");
            Assert.IsNotNull(dropTable, "DropTable should be one of the unsupported methods.");
            Assert.AreEqual(ProviderStub.NotSupportedMessageForDropTable, dropTable.Message);

            Assert.IsNull(unsupportedMethods.Find(m => m.Name == "CreateTable"), "CreateTable should be one of the supported methods.");
        }
Example #2
0
        public void TestGetUnsupportedMethods() // CLEAN: move to test class of its own
        {
            var provider = new ProviderStub();
            List <UnsupportedMethod> unsupportedMethods = provider.GetUnsupportedMethods().ToList();

            UnsupportedMethod dropTable = unsupportedMethods.Find(m => m.Name == "DropTable");

            Assert.IsNotNull(dropTable, "DropTable should be one of the unsupported methods.");
            Assert.AreEqual(ProviderStub.NotSupportedMessageForDropTable, dropTable.Message);

            Assert.IsNull(unsupportedMethods.Find(m => m.Name == "CreateTable"), "CreateTable should be one of the supported methods.");
        }