
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
fluentassertions2shouldly
Advanced tools
This library was developed using Cursor, an AI-powered code editor.
All code, all tests and all documentation was written by the AI, no code was written by me.
The AI is not perfect, it is like a very newbie developer. It needed a lot of coaching, and it didn't remember what it was told. On the bright side, it never complained, but just tried to do what it was told, and I could do other stuff while it was wading through its own errors, trying to fix them.
A library that provides a FluentAssertions-style syntax while using Shouldly under the hood. This is perfect for:
dotnet add package FluentAssertions2Shouldly
The library provides a familiar FluentAssertions-style syntax:
// String assertions
string text = "Hello";
text.Should().Be("Hello");
text.Should().StartWith("He");
text.Should().Contain("ell");
// Numeric assertions
int number = 42;
number.Should().Be(42);
number.Should().BeGreaterThan(40);
number.Should().BeInRange(40, 45);
// Collection assertions
var list = new[] { 1, 2, 3 };
list.Should().HaveCount(3);
list.Should().Contain(2);
list.Should().BeInAscendingOrder();
// Exception assertions
Action action = () => throw new Exception();
action.Should().Throw<Exception>();
While using Shouldly under the hood:
// What you write
text.Should().Be("Hello");
// What actually runs
text.ShouldBe("Hello");
The library makes it easy to migrate from FluentAssertions to Shouldly gradually:
Example:
// Original FluentAssertions code
using FluentAssertions;
value.Should().Be(expected);
// Step 1: Switch to FluentAssertions2Shouldly
using FluentAssertions2Shouldly;
value.Should().Be(expected);
// Step 2 (Optional): Native Shouldly
using Shouldly;
value.ShouldBe(expected);
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Unknown package
We found that fluentassertions2shouldly demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.