Exemple #1
0
        public void EnlistSoldierToHQShouldReturnSoldierId()
        {
            var soldier1 = "Jos";
            var soldier2 = "Jos2";
            var hq       = new HeadQuarters();

            var id1 = hq.ReportEnlistment(soldier1);
            var id2 = hq.ReportEnlistment(soldier2);

            id1.Should().NotBe(id2);
        }
Exemple #2
0
        public void REportEmptySoldierNameShouldThrowArgumentException()
        {
            var hq = new HeadQuarters();

            Assert.Throws <ArgumentException>(() => hq.ReportEnlistment(String.Empty));
        }