コード例 #1
0
        public void Backend_AvatarItemBackend_SetDataSourceDataSet_Valid_Enum_UnitTests_Should_Pass()
        {
            //arrange
            var unitEnum = _5051.Models.DataSourceDataSetEnum.UnitTest;
            var backend  = AvatarItemBackend.Instance;

            //act
            AvatarItemBackend.SetDataSourceDataSet(unitEnum);
            var result = backend;

            //reset
            backend.Reset();

            //assert
            Assert.IsNotNull(result, TestContext.TestName);
        }
コード例 #2
0
        public void Backend_AvatarItemBackend_SetDataSource_Valid_Enum_SQL_Should_Pass()
        {
            //arrange
            var sqlEnum = _5051.Models.DataSourceEnum.SQL;
            var backend = AvatarItemBackend.Instance;

            //act
            AvatarItemBackend.SetDataSource(sqlEnum);
            var result = backend;

            //reset
            backend.Reset();

            //assert
            Assert.IsNotNull(result, TestContext.TestName);
        }