Beispiel #1
0
		public void SpecifyBadLang() {
			cmd = new Cmd.ListVersions();
			base.InitCommand(cmd);
			cmd.Lang = "3";
			var result = cmd.Run();
			Assert.AreEqual(CommandStatus.Failure, result.Status);
		}
Beispiel #2
0
		public void AllLangs() {
			cmd = new Cmd.ListVersions();
			base.InitCommand(cmd);
			var result = cmd.Run();
			Assert.AreEqual(CommandStatus.Success, result.Status);
			Assert.IsTrue(result.Message.Contains("English [en]"));
		}
Beispiel #3
0
		public void SpecifyLang() {
			cmd = new Cmd.ListVersions();
			base.InitCommand(cmd);
			cmd.Lang = "en";
			var result = cmd.Run();
			Assert.AreEqual(CommandStatus.Success, result.Status);
			Assert.IsTrue(result.Message.Contains("1"));
		}