Example #1
0
    public void AsStringWithPrefix()
    {
        var seq = new SpreadShortSequence(0);

        Assert.Equal("C-9E33", seq.NextAsString("C-"));
        Assert.Equal("C-3C66", seq.NextAsString("C-"));
        Assert.Equal("C-DA99", seq.NextAsString("C-"));
        Assert.Equal("C-78CC", seq.NextAsString("C-"));
        Assert.Equal("C-16FF", seq.NextAsString("C-"));
        Assert.Equal("C-B532", seq.NextAsString("C-"));
        Assert.Equal("C-5365", seq.NextAsString("C-"));
        Assert.Equal("C-F198", seq.NextAsString("C-"));
        Assert.Equal("C-8FCB", seq.NextAsString("C-"));
        Assert.Equal("C-2DFE", seq.NextAsString("C-"));
        Assert.Equal("C-CC31", seq.NextAsString("C-"));
        Assert.Equal("C-6A64", seq.NextAsString("C-"));
        Assert.Equal("C-0897", seq.NextAsString("C-"));
    }
Example #2
0
    public void AsString()
    {
        var seq = new SpreadShortSequence(0);

        Assert.Equal("9E33", seq.NextAsString());
        Assert.Equal("3C66", seq.NextAsString());
        Assert.Equal("DA99", seq.NextAsString());
        Assert.Equal("78CC", seq.NextAsString());
        Assert.Equal("16FF", seq.NextAsString());
        Assert.Equal("B532", seq.NextAsString());
        Assert.Equal("5365", seq.NextAsString());
        Assert.Equal("F198", seq.NextAsString());
        Assert.Equal("8FCB", seq.NextAsString());
        Assert.Equal("2DFE", seq.NextAsString());
        Assert.Equal("CC31", seq.NextAsString());
        Assert.Equal("6A64", seq.NextAsString());
        Assert.Equal("0897", seq.NextAsString());
    }