public void Setup()
 {
     mVersionHelper = new MockVersionHelper
     {
         Copyright             = "(C)",
         CurrentVersion        = "9.9.9",
         IsNewVersionAvailable = false
     };
 }
        public void SetVersionInfo()
        {
            var viewModel = new MenuViewModel(new MockApplication(), mVersionHelper);

            var versionHelper = new MockVersionHelper
            {
                Copyright             = "(Copyright)",
                CurrentVersion        = "1.1.1",
                IsNewVersionAvailable = true
            };

            viewModel.SetVersionInfo(versionHelper);

            Assert.AreEqual(!versionHelper.IsNewVersionAvailable, viewModel.IsLatestVersion);
            Assert.AreEqual(versionHelper.IsNewVersionAvailable, viewModel.IsNewVersionAvailable);
            Assert.AreEqual(versionHelper.Copyright, viewModel.CopyrightLabel);
            Assert.AreEqual(string.Format("Version {0}", versionHelper.CurrentVersion), viewModel.VersionLabel);
        }