コード例 #1
0
        public void Create_CreatesSomething3()
        {
            //arrange
            Something3Factory something3Factory = new Something3Factory();

            //act
            var actual = something3Factory.Create();

            //assert
            Assert.IsInstanceOfType(actual, typeof(Core.Model.Something3));
        }
コード例 #2
0
        public void Create_CreatesSomething3WithFullname()
        {
            //arrange
            Something3Factory something3Factory = new Something3Factory();
            var expected = "Fred Bloggs";

            //act
            var actual = something3Factory.Create(expected);

            //assert
            Assert.IsInstanceOfType(actual, typeof(Core.Model.Something3));
            Assert.AreEqual(actual.FullName, expected);
        }