示例#1
0
        public void ConvertTest006_NotFullversion()
        {
            VersionToVisibilty converter = new VersionToVisibilty();

            Visibility expected = Visibility.Visible;

            object result = converter.Convert(
                new SerializableVersion(new Version("1.2.0.0")),
                null,
                "1.2",
                null);

            Assert.AreEqual(expected, result);
        }
示例#2
0
        public void ConvertTest005_NotEqualsOperatorDifferent()
        {
            VersionToVisibilty converter = new VersionToVisibilty();

            Visibility expected = Visibility.Collapsed;

            object result = converter.Convert(
                new SerializableVersion(new Version("0.0.0.0")),
                null,
                "not-0.0.0.0",
                null);

            Assert.AreEqual(expected, result);
        }