Example #1
0
        public async Task TestDefaultComponentCard()
        {
            var component = new ComponentDefault();

            await TestComponentCard(component);

            //For coverage
            component.SetDefaults();
        }
Example #2
0
        public async Task TestDoneOnSelect()
        {
            var done      = new DoneOnSelect();
            var component = new ComponentDefault()
            {
                Done = done
            };

            await TestComponentCard(component);

            //For coverage
            component.SetDefaults();
            done.SetDefaults();
            Assert.NotNull(done.ToJson());
            Assert.NotNull(done.ToString());
        }
Example #3
0
        public async Task TestDoneMediaCard()
        {
            var done      = new DoneMediaWatched();
            var component = new ComponentDefault()
            {
                Done = done
            };

            await TestComponentCard(component); //In practice, we'd want to make sure this pairs with a media card

            //For coverage
            component.SetDefaults();
            done.SetDefaults();
            Assert.NotNull(done.ToJson());
            Assert.NotNull(done.ToString());
        }
Example #4
0
        public async Task TestDoneDataCard()
        {
            var done      = new DoneDataCommitted();
            var component = new ComponentDefault()
            {
                Done = done
            };

            await TestComponentCard(component); //In practice, we'd want to make sure this pairs with a text input or other form of data entry layout

            //For coverage
            component.SetDefaults();
            done.SetDefaults();
            Assert.NotNull(done.ToJson());
            Assert.NotNull(done.ToString());
        }