Esempio n. 1
0
        public void Test_CreateCommandFilePath()
        {
            string  groupName = "TestGroup";
            Version version   = new Version(1, 2, 3, 4);

            DataSchema schema = (DataSchema)DataAccess.Data.InitializeDataSchema();

            string schemaDirectoryPath = TestUtilities.GetTestingPath(this) + Path.DirectorySeparatorChar + schema.SchemaDirectory;

            string path = schema.CreateCommandFilePath(schemaDirectoryPath, groupName, version);

            string expectedPath = TestUtilities.GetTestingPath(this) + Path.DirectorySeparatorChar +
                                  schema.SchemaDirectory + Path.DirectorySeparatorChar +
                                  groupName + "--" + version.ToString().Replace(".", "-") + ".schema";


            Assert.AreEqual(expectedPath, path, "The path doesn't match what's expected.");
        }