Example #1
0
        public void CanCreateDLC()
        {
            var x = new DLC("TestTitle", "TestConsole", 2018, new Price(20m, Currency.USD));

            Assert.IsTrue(x.Title == "TestTitle");
            Assert.IsTrue(x.Console == "TestConsole");
            Assert.IsTrue(x.Year == 2018);
            Assert.IsTrue(x.Price.Amount == 20m);
            Assert.IsTrue(x.Price.Unit == Currency.USD);
            Assert.IsTrue(x.IsDownloaded == false);
        }
Example #2
0
        public void CanDownloadDLC()
        {
            var x = new DLC("Final Fantasy XV DLC 4", "Playstation 4", 2017, new Price(8.90m, Currency.EUR));

            Assert.IsFalse(x.IsDownloaded == true);
        }