Esempio n. 1
0
        public void AddToDirectory_ShouldGetCorrectBool()
        {
            //Arrange
            SCCalc           content = new SCCalc();
            SCCalcRepository repo    = new SCCalcRepository();
            //Act
            bool addResult = repo.AddContentToDirectory(content);

            //Assert
            Assert.IsTrue(addResult);
        }
Esempio n. 2
0
        public void GetDirectory_ShouldReturnCorrectList()
        {
            //Arange
            SCCalc           testContent = new SCCalc();
            SCCalcRepository repo        = new SCCalcRepository();

            repo.AddContentToDirectory(testContent);

            //Act
            List <SCCalc> testList            = repo.GetContent();
            bool          directoryHasContent = testList.Contains(testContent);

            //Assert
            Assert.IsTrue(directoryHasContent);
        }