Ejemplo n.º 1
0
        public async Task TestCapturePhotoComponentCard()
        {
            var component = new ComponentCapturePhoto()
            {
                Delay = 1
            };

            await TestComponentCard(component);

            //For coverage
            component.Captures = new List <string>();
            Assert.Empty(component.Captures);
            component.SetDefaults();
        }
Ejemplo n.º 2
0
        public async Task TestDoneMinCapturedCard()
        {
            var done = new DoneMinCaptured()
            {
                MinCaptured = 1
            };
            var component = new ComponentCapturePhoto()
            {
                Done = done
            };

            await TestComponentCard(component);

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