Quantcast
Channel: Fluent Assertions
Browsing all 1402 articles
Browse latest View live
↧

Created Issue: Misleading AllDeclaredPublicPropertiesSelectionRule class [12486]

I would expect this class to provide a list of public properties only. However under the hood, in the SelectProperties method, it is calling GetNonPrivateProperties which can return protected, internal...

View Article


Created Unassigned: NullReferenceException caused by AttributeBasedFormatter...

```(true).Should().BeFalse();```results in```System.NullReferenceException : Object reference not set to an instance of an object at...

View Article


New Comment on "Documentation"

Could you break down the wiki so that there is a page for each section?

View Article

New Post: Adding a method to measure how many times some text repeats within...

Hello, I want to measure how many times some text repeats within a string so I'd really love to have additional method that does that. Here is an example. int times = 1; string text = "Some text that...

View Article

New Post: Adding a method to measure how many times some text repeats within...

Thanks for the suggestion. Could you provide us with the suggested syntax?

View Article


New Post: Adding a method to measure how many times some text repeats within...

Well, overloading Contains seems like one way to do that or adding a new method such as Find? int times = 3; string text = "textX textY textZ"; text.Should().Find("text", times); In addition, I think...

View Article

Commented Issue: Windows phone throwing non descript exceptions [12470]

Given the following code.[TestMethod]public void InitialiseSession(){ false.Should().BeTrue();}Results in :New exception: "Could not find windows phone test framework.". I'm using the latest test...

View Article

New Post: Bug: Optional parameters in .NET 3.5 build

Hi, I'm working on a project that has target framework of .NET 3.5 and recently imported Fluent Assertions for that specific version. It seems that this build version uses optional parameters that are...

View Article


New Post: Bug: Optional parameters in .NET 3.5 build

Actually, you need Visual Studio 2010. Named and optional arguments is just syntactical sugar provided by the compiler and has nothing to do with the .NET Framework version.

View Article


New Comment on "Documentation"

I love this to be on a single page. I hate that MS's .Net documentation is too normalized (you have to click on each method just to discover the return type); this one presents all you need to get...

View Article

New Post: Support for C# Dynamics

You could try delcaring your test item as an object, that worked for me :) e.g. ((object)queryResult.Single().Value2).Should().NotBeNull

View Article

Created Unassigned: string.Should().NotBeNullOrWhitespace(); [12488]

Can a method for NullOrWhitespace be added to String assertions please? A NullOrEmpty already exists, but not one for whitespace.Cheers

View Article

Created Unassigned: XElement.Should().Match() [12489]

Because there are a lot more things to test than just both attributes and elements.Currently I use something like this: ``` C#XElement.As<XNode>().Should().Match<XElement>(x => x.Name ==...

View Article


Commented Unassigned: XElement.Should().Match() [12489]

Because there are a lot more things to test than just both attributes and elements.Currently I use something like this: ``` C#XElement.As<XNode>().Should().Match<XElement>(x => x.Name ==...

View Article

New Post: Comparing object equivalence for dictionaries

I've been using ShouldBeEquivalentTo() to compare 2 dictionaries, which works fine. What I want to be do is check that the keys are the same, while the values can be within a range (say within 1 %)...

View Article


New Post: Comparing object equivalence for dictionaries

Hi Sarah, Version 2.0 doesn't even really support dictionaries. It just compares the value pairs in order of appearance. In the upcoming version 2.1, I've added logic that tries to match the values...

View Article

New Comment on "Documentation"

I have a couple of questions on the section "Object Graph Comparison --> Overriding and collections" orderDto.ShouldBeEquivalentTo(order, options => options .Using<DateTime>(ctx =>...

View Article


Image may be NSFW.
Clik here to view.

Updated Wiki: Home

Project DescriptionFluent Assertions is a set of .NET extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style test. We currently use it in all our internal...

View Article

Image may be NSFW.
Clik here to view.

Updated Wiki: Home

Project DescriptionFluent Assertions is a set of .NET extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style test. We currently use it in all our internal...

View Article

Image may be NSFW.
Clik here to view.

Updated Wiki: Home

Project DescriptionFluent Assertions is a set of .NET extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style test. We currently use it in all our internal...

View Article
Browsing all 1402 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>