Exemplo n.º 1
0
        public void Should_be_possible_to_represent_an_EvrString_without_epoch_defined()
        {
            var evrStringSample = new EvrString("1.9-1");

            Assert.IsTrue(String.IsNullOrEmpty(evrStringSample.Epoch), String.Format("Epoch must be null or empty, but it contains '{0}'.", evrStringSample.Epoch));
            Assert.AreEqual("1.9", evrStringSample.Version, "Unexpected version was found in EVR String.");
            Assert.AreEqual("1", evrStringSample.Release, "Unexpected release was found in EVR String.");
        }
Exemplo n.º 2
0
        public void Should_be_possible_to_get_epoch_version_and_release_from_an_EvrString()
        {
            var evrStringSample = new EvrString("4:1.2-6");

            Assert.AreEqual("4", evrStringSample.Epoch, "Unexpected epoch was found in EVR String.");
            Assert.AreEqual("1.2", evrStringSample.Version, "Unexpected version was found in EVR String.");
            Assert.AreEqual("6", evrStringSample.Release, "Unexpected release was found in EVR String.");
        }