Exemplo n.º 1
0
        public NebulaCheck.IGen <Test> OtherwiseIfCharTypeHasWhitespace_ItShrinksToSpace() =>
        from charType in TestGen.CharType(GalaxyCheck.Gen.CharType.Alphabetical)
        from seed in DomainGen.Seed()
        from size in DomainGen.Size()
        select Property.ForThese(() =>
        {
            var gen = GalaxyCheck.Gen.Char(GalaxyCheck.Gen.CharType.Whitespace | charType);

            var minimum = gen.Minimum(seed: seed, size: size);

            minimum.Should().Be(' ');
        });
Exemplo n.º 2
0
        public NebulaCheck.IGen <Test> IfCharTypeHasAlphabetical_ItShrinksToLowercaseA() =>
        from charType in TestGen.CharType()
        from seed in DomainGen.Seed()
        from size in DomainGen.Size()
        select Property.ForThese(() =>
        {
            var gen = GalaxyCheck.Gen.Char(GalaxyCheck.Gen.CharType.Alphabetical | charType);

            var minimum = gen.Minimum(seed: seed, size: size);

            minimum.Should().Be('a');
        });
Exemplo n.º 3
0
        public NebulaCheck.IGen <Test> OtherwiseIfCharTypeHasSymbol_ItShrinksToExclamationMark() =>
        from charType in TestGen.CharType(
            GalaxyCheck.Gen.CharType.Whitespace,
            GalaxyCheck.Gen.CharType.Alphabetical,
            GalaxyCheck.Gen.CharType.Numeric)
        from seed in DomainGen.Seed()
        from size in DomainGen.Size()
        select Property.ForThese(() =>
        {
            var gen = GalaxyCheck.Gen.Char(GalaxyCheck.Gen.CharType.Symbol | charType);

            var minimum = gen.Minimum(seed: seed, size: size);

            minimum.Should().Be('!');
        });
Exemplo n.º 4
0
        public NebulaCheck.IGen <Test> OtherwiseIfCharTypeHasExtended_ItShrinksToMajusculeCCedilla() =>
        from charType in TestGen.CharType(
            GalaxyCheck.Gen.CharType.Whitespace,
            GalaxyCheck.Gen.CharType.Alphabetical,
            GalaxyCheck.Gen.CharType.Numeric,
            GalaxyCheck.Gen.CharType.Symbol)
        from seed in DomainGen.Seed()
        from size in DomainGen.Size()
        select Property.ForThese(() =>
        {
            var gen = GalaxyCheck.Gen.Char(GalaxyCheck.Gen.CharType.Extended | charType);

            var minimum = gen.Minimum(seed: seed, size: size);

            minimum.Should().Be('\u0080');
        });