public void Format_Null()
        {
            // arrange
            var serializer = new BooleanSerializer();

            // act
            object?result = serializer.Format(null);

            // assert
            Assert.Null(result);
        }
        public void Format_False()
        {
            // arrange
            var serializer = new BooleanSerializer();

            // act
            object?result = serializer.Format(false);

            // assert
            Assert.False(Assert.IsType <bool>(result));
        }
Exemple #3
0
        public void Format_True()
        {
            // arrange
            var serializer = new BooleanSerializer();

            // act
            var result = serializer.Format(true);

            // assert
            Assert.True(Assert.IsType <bool>(result));
        }