NConstraints v1.1.1 Released Now Targets .NET Standard 2.0

I’m happy to announce that NConstraints v1.1.1 has been released! This release updates the NuGet package from .NET Standard 1.6 to 2.0 and should work with all versions of NUnit 3.

You can install NConstraints via the dotnet command line:

dotnet add package SaturdayMP.NConstraints --version 1.1.1

Other install options can be found here.

NConstraints currently only has one constraint called EquivalentPropertyWiseTo. It checks if all the property values on two objects are the same. Instead of writting:

[Test]
public void TestObjectsTheSame()
{
  var expected = new ExpectedClass() { ValueOne = 1, ValueTwo = "Blah", ValueThree = 33 };

  var actual = MethodBeingTested();
   
  Assert.That(expected.ValueOne, Is.EqualTo(actual.ValueOne));
  Assert.That(expected.ValueTwo, Is.EqualTo(actual.ValueTwo));
  Assert.That(expected.ValueThree, Is.EqualTo(actual.ValueThree));
}

You can write:

[Read More]

Saturday MP Show #6: Adding Unit Tests for the Standard Ruby Linter ToDo Bug Fix

I add a unit test for the Standard Ruby linter bug fix done in the last episode. When adding the unit test I find out someone has improved the todo generation logic. Thank you. I also find a remove a redundant test.

Read about the bug being fixed here.

[Read More]

Saturday MP Show #5: Fixing the Standard (Ruby Linter) Existing ToDo List Bug

In this episode I implement a fix for the todo file generation bug in the Standard (Ruby linter) and do some manual testing. Also use ChatGPT to explain some code that GitHub Copilot generated.

Read about the bug being fixed here.

See the previous episode, number 4, where I create I duplicate the issue and come up with the fix possible fix.

[Read More]

Saturday MP Show #4: Duplicating the Standard (Ruby Linter) Existing ToDo List Bug

I duplicate a todo file generation bug in the Standard (Ruby linter) and come up with a possible fix but don’t actually get to the fix.

Read about the bug here.

See episode #1 where I create a Docker development environment for Standard:

As a bonus at the beginning of the video I upgrade RubyMine to fix the bug we encountered in episode 2:

[Read More]

Saturday MP Show #3: Filling out the JetBrains Developer Ecosystem Survey 2023

I, Chris, spend a lot longer then I anticipated filling out the JetBrains Developer Ecosystem Survey 2023. Thought it would be a quick half-hour but turned into 2 hours. Sorry in advance for the long video.

If you use the link below to take the survey I might win a prize:

[Read More]