Skip to content

Tests for old .NET Frameworks #455

@MPrtenjak

Description

@MPrtenjak

Type of issue

[ ] Bug
[X] Question (e.g. about handling/usage)
[ ] Request for new feature/improvement

Expected Behavior

Why are tests for .NET 3.5 different than for the other platforms? I am asking that because tests are failing.

For instance, this test:

        public void can_create_standard_qrcode_graphic()
        {
            var gen = new QRCodeGenerator();
            var data = gen.CreateQrCode("This is a quick test! 123#?", QRCodeGenerator.ECCLevel.H);
            var bmp = new ArtQRCode(data).GetGraphic(10);

            var result = HelperFunctions.BitmapToHash(bmp);
#if NET35_OR_GREATER || NET40_OR_GREATER
            result.ShouldBe("11ebdda91b9632d016798cb6de2f5339");
#else
            result.ShouldBe("cb38c3156eaf13cdfba699bdafc3a84c");
#endif
        }

Even though I am running tests in .NET 3.5 the result is equal to "cb38c3156eaf13cdfba699bdafc3a84c", which sounds to me as correct.
Why would a result of a function depend on the .NET version?

Your Environment

I am using Visual Studio 2022. Just download from GitHub, open in VS 2022, and run tests.

Some test fails on .NET 3.5 and .NET 4.5

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions