From 0fe446b033feead9d8f2a9b0e49ece27bd72a65f Mon Sep 17 00:00:00 2001 From: ABerg Date: Fri, 17 Sep 2021 17:13:56 +0200 Subject: [PATCH 01/46] Added BeSingle Assertion for xElement --- .../Xml/XElementAssertions.cs | 41 +++++++++ .../Xml/XElementAssertionSpecs.cs | 84 +++++++++++++++++++ 2 files changed, 125 insertions(+) diff --git a/Src/FluentAssertions/Xml/XElementAssertions.cs b/Src/FluentAssertions/Xml/XElementAssertions.cs index c0f2a0d4cb..9850040ab1 100644 --- a/Src/FluentAssertions/Xml/XElementAssertions.cs +++ b/Src/FluentAssertions/Xml/XElementAssertions.cs @@ -1,5 +1,6 @@ using System; using System.Diagnostics; +using System.Linq; using System.Xml; using System.Xml.Linq; using FluentAssertions.Common; @@ -288,6 +289,46 @@ public AndConstraint HaveValue(string expected, string becau return new AndWhichConstraint(this, xElement); } + /// + /// Asserts that the current is a single element inside the parent . + /// + /// + /// A formatted phrase as is supported by explaining why the assertion + /// is needed. If the phrase does not start with the word because, it is prepended automatically. + /// + /// + /// Zero or more objects to format using the placeholders in . + /// + public AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) + { + if (Subject is null) + { + throw new InvalidOperationException("Cannot assert the count if the element itself is ."); + } + + Execute.Assertion + .ForCondition(Subject.Parent is not null) + .BecauseOf(because, becauseArgs) + .FailWith( + "Expected {context:subject} to have parent element, but it has no parent element."); + + XDocument parentDocument = Subject.Parent.Document; + Execute.Assertion + .ForCondition(parentDocument is not null) + .BecauseOf(because, becauseArgs) + .FailWith( + "Expected parent of {context:subject} to have a document, but it has no document."); + + var xElements = parentDocument.Root.Elements(Subject.Name); + Execute.Assertion + .ForCondition(xElements.Count() == 1) + .BecauseOf(because, becauseArgs) + .FailWith( + $"Expected {Subject.Name} to be a single element, but it wasn't."); + + return new AndWhichConstraint(this, Subject); + } + /// /// Returns the type of the subject the assertion applies on. /// diff --git a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs index 3f3364b47a..96f8f09455 100644 --- a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs @@ -1228,5 +1228,89 @@ public void When_asserting_element_has_a_child_element_with_an_empty_name_it_sho } #endregion + + #region BeSingle + + [Fact] + public void When_asserting_document_has_a_single_child_element_and_it_does_it_should_succeed() + { + // Arrange + var document = XDocument.Parse( + @" + + "); + + // Act / Assert + document.Should().HaveElement("child").Which.Should().BeSingle(); + } + + [Fact] + public void When_asserting_document_has_single_child_element_but_it_does_have_two_it_should_fail() + { + // Arrange + var document = XDocument.Parse( + @" + + + "); + + // Act + Action act = () => document.Should().HaveElement("child").Which.Should().BeSingle(); + + // Assert + act.Should().Throw().WithMessage( + "Expected child to be a single element, but it wasn't."); + } + + [Fact] + public void When_asserting_xElement_is_a_single_child_element_it_should_succeed() + { + // Arrange + var document = XDocument.Parse( + @" + + "); + + var xElement = document.Root.Element("child"); + + // Act / Assert + xElement.Should().BeSingle(); + } + + [Fact] + public void When_asserting_xElement_is_not_a_single_child_element_it_should_fail() + { + // Arrange + var document = XDocument.Parse( + @" + + + "); + + var xElement = document.Root.Element("child"); + + // Act + Action act = () => xElement.Should().BeSingle(); + + // Assert + act.Should().Throw().WithMessage( + "Expected child to be a single element, but it wasn't."); + } + + [Fact] + public void When_asserting_a_null_xElement_to_be_single_it_should_fail() + { + // Arrange + XElement xElement = null; + + // Act + Action act = () => xElement.Should().BeSingle(); + + // Assert + act.Should().Throw().WithMessage( + "Cannot assert the count if the element itself is ."); + } + + #endregion } } From d66b5880e314be76068d0634c9ad1e5b8dbe2264 Mon Sep 17 00:00:00 2001 From: ABerg Date: Fri, 17 Sep 2021 18:03:17 +0200 Subject: [PATCH 02/46] Implemented HaveCount Method for xElement --- .../Xml/XElementAssertions.cs | 24 ++++- .../Xml/XElementAssertionSpecs.cs | 100 +++++++++++++++++- 2 files changed, 120 insertions(+), 4 deletions(-) diff --git a/Src/FluentAssertions/Xml/XElementAssertions.cs b/Src/FluentAssertions/Xml/XElementAssertions.cs index 9850040ab1..7e65ba321c 100644 --- a/Src/FluentAssertions/Xml/XElementAssertions.cs +++ b/Src/FluentAssertions/Xml/XElementAssertions.cs @@ -300,6 +300,24 @@ public AndConstraint HaveValue(string expected, string becau /// Zero or more objects to format using the placeholders in . /// public AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) + { + return HaveCount(1, because, becauseArgs); + } + + /// + /// Asserts that the number of elements in the document matches the supplied amount. + /// name. + /// + /// The expected number of elements in the document. + /// + /// A formatted phrase as is supported by explaining why the assertion + /// is needed. If the phrase does not start with the word because, it is prepended automatically. + /// + /// + /// Zero or more objects to format using the placeholders in . + /// + public AndWhichConstraint HaveCount(int expected, string because = "", + params object[] becauseArgs) { if (Subject is null) { @@ -320,11 +338,13 @@ public AndConstraint HaveValue(string expected, string becau "Expected parent of {context:subject} to have a document, but it has no document."); var xElements = parentDocument.Root.Elements(Subject.Name); + int actualCount = xElements.Count(); Execute.Assertion - .ForCondition(xElements.Count() == 1) + .ForCondition(actualCount == expected) .BecauseOf(because, becauseArgs) .FailWith( - $"Expected {Subject.Name} to be a single element, but it wasn't."); + "Expected {0} to have a count of {1}, but found {2}.", + Subject.Name, expected, actualCount); return new AndWhichConstraint(this, Subject); } diff --git a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs index 96f8f09455..323fa5498c 100644 --- a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs @@ -1259,7 +1259,7 @@ public void When_asserting_document_has_single_child_element_but_it_does_have_tw // Assert act.Should().Throw().WithMessage( - "Expected child to be a single element, but it wasn't."); + "Expected child to have a count of 1, but found 2."); } [Fact] @@ -1271,6 +1271,8 @@ public void When_asserting_xElement_is_a_single_child_element_it_should_succeed( "); + // ReSharper disable once PossibleNullReferenceException + // Root is never null var xElement = document.Root.Element("child"); // Act / Assert @@ -1287,6 +1289,8 @@ public void When_asserting_xElement_is_not_a_single_child_element_it_should_fail "); + // ReSharper disable once PossibleNullReferenceException + // Root is never null var xElement = document.Root.Element("child"); // Act @@ -1294,7 +1298,7 @@ public void When_asserting_xElement_is_not_a_single_child_element_it_should_fail // Assert act.Should().Throw().WithMessage( - "Expected child to be a single element, but it wasn't."); + "Expected child to have a count of 1, but found 2."); } [Fact] @@ -1312,5 +1316,97 @@ public void When_asserting_a_null_xElement_to_be_single_it_should_fail() } #endregion + + #region HaveCount + + [Fact] + public void When_asserting_document_has_a_single_child_element_and_it_does_it_should_succeed1() + { + // Arrange + var document = XDocument.Parse( + @" + + + "); + + // Act / Assert + document.Should().HaveElement("child").Which.Should().HaveCount(2); + } + + [Fact] + public void When_asserting_document_has_single_child_element_but_it_does_have_two_it_should_fail1() + { + // Arrange + var document = XDocument.Parse( + @" + + + + "); + + // Act + Action act = () => document.Should().HaveElement("child").Which.Should().HaveCount(2); + + // Assert + act.Should().Throw().WithMessage( + "Expected child to have a count of 2, but found 3."); + } + + [Fact] + public void When_asserting_xElement_is_a_single_child_element_it_should_succeed1() + { + // Arrange + var document = XDocument.Parse( + @" + + + "); + + // ReSharper disable once PossibleNullReferenceException + // Root is never null + var xElement = document.Root.Element("child"); + + // Act / Assert + xElement.Should().HaveCount(2); + } + + [Fact] + public void When_asserting_xElement_is_not_a_single_child_element_it_should_fail1() + { + // Arrange + var document = XDocument.Parse( + @" + + + + "); + + // ReSharper disable once PossibleNullReferenceException + // Root is never null + var xElement = document.Root.Element("child"); + + // Act + Action act = () => xElement.Should().HaveCount(2); + + // Assert + act.Should().Throw().WithMessage( + "Expected child to have a count of 2, but found 3."); + } + + [Fact] + public void When_asserting_a_null_xElement_to_be_single_it_should_fail1() + { + // Arrange + XElement xElement = null; + + // Act + Action act = () => xElement.Should().HaveCount(1); + + // Assert + act.Should().Throw().WithMessage( + "Cannot assert the count if the element itself is ."); + } + + #endregion } } From 8edaa015002433356ac1693345f1b0f869dfd339 Mon Sep 17 00:00:00 2001 From: ABerg Date: Fri, 17 Sep 2021 18:58:57 +0200 Subject: [PATCH 03/46] Improved comments and implementation --- Src/FluentAssertions/Xml/XElementAssertions.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Src/FluentAssertions/Xml/XElementAssertions.cs b/Src/FluentAssertions/Xml/XElementAssertions.cs index 7e65ba321c..46ce22f0bb 100644 --- a/Src/FluentAssertions/Xml/XElementAssertions.cs +++ b/Src/FluentAssertions/Xml/XElementAssertions.cs @@ -305,7 +305,7 @@ public AndConstraint HaveValue(string expected, string becau } /// - /// Asserts that the number of elements in the document matches the supplied amount. + /// Asserts that the number of elements in the parent matches the supplied amount. /// name. /// /// The expected number of elements in the document. @@ -330,14 +330,7 @@ public AndConstraint HaveValue(string expected, string becau .FailWith( "Expected {context:subject} to have parent element, but it has no parent element."); - XDocument parentDocument = Subject.Parent.Document; - Execute.Assertion - .ForCondition(parentDocument is not null) - .BecauseOf(because, becauseArgs) - .FailWith( - "Expected parent of {context:subject} to have a document, but it has no document."); - - var xElements = parentDocument.Root.Elements(Subject.Name); + var xElements = Subject.Parent.Elements(Subject.Name); int actualCount = xElements.Count(); Execute.Assertion .ForCondition(actualCount == expected) From 74f4f37c2b1d4683b4edc523c9d25fa9b461265b Mon Sep 17 00:00:00 2001 From: ABerg Date: Fri, 17 Sep 2021 19:20:01 +0200 Subject: [PATCH 04/46] Added release notes and documentation --- docs/_pages/releases.md | 2 ++ docs/_pages/xml.md | 3 +++ 2 files changed, 5 insertions(+) diff --git a/docs/_pages/releases.md b/docs/_pages/releases.md index ff728d4bb2..da75160c8e 100644 --- a/docs/_pages/releases.md +++ b/docs/_pages/releases.md @@ -87,6 +87,8 @@ sidebar: * Adding new overloads to all `GreaterOrEqualTo` and `LessOrEqualTo` assertions, adding the word `Than` - [#1673](https://github.com/fluentassertions/fluentassertions/pull/1673) * `BeAsync()` and `NotBeAsync()` are now also available on `MethodInfoSelectorAssertions` - [#1700](https://github.com/fluentassertions/fluentassertions/pull/1700) +* Added `BeSingle` and `HaveCount` for `XElement` - [#1681](https://github.com/fluentassertions/fluentassertions/pull/1673) + ### Fixes * Prevent exceptions when asserting on `ImmutableArray` - [#1668](https://github.com/fluentassertions/fluentassertions/pull/1668) diff --git a/docs/_pages/xml.md b/docs/_pages/xml.md index a1447f0c5b..9ae9fdf40c 100644 --- a/docs/_pages/xml.md +++ b/docs/_pages/xml.md @@ -43,4 +43,7 @@ Chaining additional assertions on top of a particular (root) element is possible xDocument.Should().HaveElement("child") .Which.Should().BeOfType() .And.HaveAttribute("attr", "1"); + +xDocument.Should().HaveElement("child") + .Which.Should().HaveCount(2); ``` From eee29f9914ead0fb846591877d22a8f277e10baf Mon Sep 17 00:00:00 2001 From: ABerg Date: Fri, 17 Sep 2021 19:31:52 +0200 Subject: [PATCH 05/46] Verified API changes --- .../ApprovedApi/FluentAssertions/net47.verified.txt | 2 ++ .../ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt | 2 ++ .../ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt | 2 ++ .../ApprovedApi/FluentAssertions/netstandard2.0.verified.txt | 2 ++ .../ApprovedApi/FluentAssertions/netstandard2.1.verified.txt | 2 ++ 5 files changed, 10 insertions(+) diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt index 8e6e5e5a1d..7de1580d86 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt @@ -2690,8 +2690,10 @@ namespace FluentAssertions.Xml protected override string Identifier { get; } public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt index e0c1d1a59c..f217aa78cd 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt @@ -2692,8 +2692,10 @@ namespace FluentAssertions.Xml protected override string Identifier { get; } public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt index 48cf7bfda4..ae32260e0c 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt @@ -2692,8 +2692,10 @@ namespace FluentAssertions.Xml protected override string Identifier { get; } public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt index 80b123a3d3..ae61c5aab8 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt @@ -2642,8 +2642,10 @@ namespace FluentAssertions.Xml protected override string Identifier { get; } public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt index 618a9a052d..621eef8b9e 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt @@ -2692,8 +2692,10 @@ namespace FluentAssertions.Xml protected override string Identifier { get; } public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } From e193366e309bd285c537a08a1f5a2e1da0198474 Mon Sep 17 00:00:00 2001 From: ABerg Date: Mon, 1 Nov 2021 12:33:58 +0100 Subject: [PATCH 06/46] Moved implementation to xDocument for better reading. --- .../Xml/XDocumentAssertions.cs | 64 +++++++ .../Xml/XElementAssertions.cs | 54 ------ .../Xml/XDocumentAssertionSpecs.cs | 100 ++++++++++ .../Xml/XElementAssertionSpecs.cs | 180 ------------------ 4 files changed, 164 insertions(+), 234 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index dd41a59357..018af906fe 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -1,5 +1,6 @@ using System; using System.Diagnostics; +using System.Linq; using System.Xml; using System.Xml.Linq; @@ -237,6 +238,69 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected return new AndWhichConstraint(this, xElement); } + /// + /// Asserts that the current is a single element inside the parent . + /// + /// + /// The full name of the expected child element of the current document's Root element. + /// + /// + /// A formatted phrase as is supported by explaining why the assertion + /// is needed. If the phrase does not start with the word because, it is prepended automatically. + /// + /// + /// Zero or more objects to format using the placeholders in . + /// + public AndConstraint HaveSingleElement(XName expected, string because = "", params object[] becauseArgs) + { + return HaveElementCount(expected, 1, because, becauseArgs); + } + + /// + /// Asserts that the number of elements in the parent matches the supplied amount. + /// + /// + /// The full name of the expected child element of the current document's Root element. + /// + /// The expected count of elements in the document. + /// + /// A formatted phrase as is supported by explaining why the assertion + /// is needed. If the phrase does not start with the word because, it is prepended automatically. + /// + /// + /// Zero or more objects to format using the placeholders in . + /// + public AndConstraint HaveElementCount(XName expected, int count, string because = "", + params object[] becauseArgs) + { + if (Subject is null) + { + throw new InvalidOperationException("Cannot assert the count if the document itself is ."); + } + + Guard.ThrowIfArgumentIsNull(expected, nameof(expected), + "Cannot assert the document has an element count if the element name is *"); + + Execute.Assertion + .ForCondition(Subject.Root is not null) + .BecauseOf(because, becauseArgs) + .FailWith( + "Expected {context:subject} to have root element with child {0}{reason}, but it has no root element.", + expected.ToString()); + + var xElements = Subject.Root.Elements(expected); + int actualCount = xElements.Count(); + + Execute.Assertion + .ForCondition(actualCount == count) + .BecauseOf(because, becauseArgs) + .FailWith( + "Expected {context:subject} to have {0} child element(s) {1}{reason}, but found {2}.", + count, expected.ToString(), actualCount); + + return new AndConstraint(this); + } + /// /// Returns the type of the subject the assertion applies on. /// diff --git a/Src/FluentAssertions/Xml/XElementAssertions.cs b/Src/FluentAssertions/Xml/XElementAssertions.cs index 46ce22f0bb..c0f2a0d4cb 100644 --- a/Src/FluentAssertions/Xml/XElementAssertions.cs +++ b/Src/FluentAssertions/Xml/XElementAssertions.cs @@ -1,6 +1,5 @@ using System; using System.Diagnostics; -using System.Linq; using System.Xml; using System.Xml.Linq; using FluentAssertions.Common; @@ -289,59 +288,6 @@ public AndConstraint HaveValue(string expected, string becau return new AndWhichConstraint(this, xElement); } - /// - /// Asserts that the current is a single element inside the parent . - /// - /// - /// A formatted phrase as is supported by explaining why the assertion - /// is needed. If the phrase does not start with the word because, it is prepended automatically. - /// - /// - /// Zero or more objects to format using the placeholders in . - /// - public AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) - { - return HaveCount(1, because, becauseArgs); - } - - /// - /// Asserts that the number of elements in the parent matches the supplied amount. - /// name. - /// - /// The expected number of elements in the document. - /// - /// A formatted phrase as is supported by explaining why the assertion - /// is needed. If the phrase does not start with the word because, it is prepended automatically. - /// - /// - /// Zero or more objects to format using the placeholders in . - /// - public AndWhichConstraint HaveCount(int expected, string because = "", - params object[] becauseArgs) - { - if (Subject is null) - { - throw new InvalidOperationException("Cannot assert the count if the element itself is ."); - } - - Execute.Assertion - .ForCondition(Subject.Parent is not null) - .BecauseOf(because, becauseArgs) - .FailWith( - "Expected {context:subject} to have parent element, but it has no parent element."); - - var xElements = Subject.Parent.Elements(Subject.Name); - int actualCount = xElements.Count(); - Execute.Assertion - .ForCondition(actualCount == expected) - .BecauseOf(because, becauseArgs) - .FailWith( - "Expected {0} to have a count of {1}, but found {2}.", - Subject.Name, expected, actualCount); - - return new AndWhichConstraint(this, Subject); - } - /// /// Returns the type of the subject the assertion applies on. /// diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index e7c9767ad4..c847ca39a2 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1158,5 +1158,105 @@ public void When_asserting_a_document_has_an_element_with_a_null_xname_it_should } #endregion + + #region HaveSingleElement + + [Fact] + public void When_asserting_document_has_a_single_child_element_and_it_does_it_should_succeed() + { + // Arrange + var document = XDocument.Parse( + @" + + "); + + // Act / Assert + document.Should().HaveSingleElement("child"); + } + + [Fact] + public void When_asserting_document_has_single_child_element_but_it_does_have_two_it_should_fail() + { + // Arrange + var document = XDocument.Parse( + @" + + + "); + + // Act + Action act = () => document.Should().HaveSingleElement("child"); + + // Assert + act.Should().Throw().WithMessage( + "Expected document to have 1 child element(s) \"child\", but found 2."); + } + + [Fact] + public void When_asserting_a_null_xDocument_to_have_a_single_element_it_should_fail() + { + // Arrange + XDocument xDocument = null; + + // Act + Action act = () => xDocument.Should().HaveSingleElement("child"); + + // Assert + act.Should().Throw().WithMessage( + "Cannot assert the count if the document itself is ."); + } + + #endregion + + #region HaveElementCount + + [Fact] + public void When_asserting_document_has_two_child_elements_and_it_does_it_should_succeed() + { + // Arrange + var document = XDocument.Parse( + @" + + + "); + + // Act / Assert + document.Should().HaveElementCount("child", 2); + } + + [Fact] + public void When_asserting_document_has_two_child_elements_but_it_does_have_three_it_should_fail() + { + // Arrange + var document = XDocument.Parse( + @" + + + + "); + + // Act + Action act = () => document.Should().HaveElementCount("child", 2); + + // Assert + act.Should().Throw().WithMessage( + "Expected document to have 2 child element(s) \"child\", but found 3."); + } + + [Fact] + public void When_asserting_a_null_xDocument_to_have_a_element_count_it_should_fail() + { + // Arrange + XDocument xDocument = null; + + // Act + Action act = () => xDocument.Should().HaveElementCount("child", 1); + + // Assert + act.Should().Throw().WithMessage( + "Cannot assert the count if the document itself is ."); + } + + #endregion } } diff --git a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs index 323fa5498c..3f3364b47a 100644 --- a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs @@ -1228,185 +1228,5 @@ public void When_asserting_element_has_a_child_element_with_an_empty_name_it_sho } #endregion - - #region BeSingle - - [Fact] - public void When_asserting_document_has_a_single_child_element_and_it_does_it_should_succeed() - { - // Arrange - var document = XDocument.Parse( - @" - - "); - - // Act / Assert - document.Should().HaveElement("child").Which.Should().BeSingle(); - } - - [Fact] - public void When_asserting_document_has_single_child_element_but_it_does_have_two_it_should_fail() - { - // Arrange - var document = XDocument.Parse( - @" - - - "); - - // Act - Action act = () => document.Should().HaveElement("child").Which.Should().BeSingle(); - - // Assert - act.Should().Throw().WithMessage( - "Expected child to have a count of 1, but found 2."); - } - - [Fact] - public void When_asserting_xElement_is_a_single_child_element_it_should_succeed() - { - // Arrange - var document = XDocument.Parse( - @" - - "); - - // ReSharper disable once PossibleNullReferenceException - // Root is never null - var xElement = document.Root.Element("child"); - - // Act / Assert - xElement.Should().BeSingle(); - } - - [Fact] - public void When_asserting_xElement_is_not_a_single_child_element_it_should_fail() - { - // Arrange - var document = XDocument.Parse( - @" - - - "); - - // ReSharper disable once PossibleNullReferenceException - // Root is never null - var xElement = document.Root.Element("child"); - - // Act - Action act = () => xElement.Should().BeSingle(); - - // Assert - act.Should().Throw().WithMessage( - "Expected child to have a count of 1, but found 2."); - } - - [Fact] - public void When_asserting_a_null_xElement_to_be_single_it_should_fail() - { - // Arrange - XElement xElement = null; - - // Act - Action act = () => xElement.Should().BeSingle(); - - // Assert - act.Should().Throw().WithMessage( - "Cannot assert the count if the element itself is ."); - } - - #endregion - - #region HaveCount - - [Fact] - public void When_asserting_document_has_a_single_child_element_and_it_does_it_should_succeed1() - { - // Arrange - var document = XDocument.Parse( - @" - - - "); - - // Act / Assert - document.Should().HaveElement("child").Which.Should().HaveCount(2); - } - - [Fact] - public void When_asserting_document_has_single_child_element_but_it_does_have_two_it_should_fail1() - { - // Arrange - var document = XDocument.Parse( - @" - - - - "); - - // Act - Action act = () => document.Should().HaveElement("child").Which.Should().HaveCount(2); - - // Assert - act.Should().Throw().WithMessage( - "Expected child to have a count of 2, but found 3."); - } - - [Fact] - public void When_asserting_xElement_is_a_single_child_element_it_should_succeed1() - { - // Arrange - var document = XDocument.Parse( - @" - - - "); - - // ReSharper disable once PossibleNullReferenceException - // Root is never null - var xElement = document.Root.Element("child"); - - // Act / Assert - xElement.Should().HaveCount(2); - } - - [Fact] - public void When_asserting_xElement_is_not_a_single_child_element_it_should_fail1() - { - // Arrange - var document = XDocument.Parse( - @" - - - - "); - - // ReSharper disable once PossibleNullReferenceException - // Root is never null - var xElement = document.Root.Element("child"); - - // Act - Action act = () => xElement.Should().HaveCount(2); - - // Assert - act.Should().Throw().WithMessage( - "Expected child to have a count of 2, but found 3."); - } - - [Fact] - public void When_asserting_a_null_xElement_to_be_single_it_should_fail1() - { - // Arrange - XElement xElement = null; - - // Act - Action act = () => xElement.Should().HaveCount(1); - - // Assert - act.Should().Throw().WithMessage( - "Cannot assert the count if the element itself is ."); - } - - #endregion } } From 5163dc6e72d18bac734a41cfea31470a542ac358 Mon Sep 17 00:00:00 2001 From: ABerg Date: Mon, 1 Nov 2021 12:38:45 +0100 Subject: [PATCH 07/46] Updated method summary --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index 018af906fe..6f9531d7a0 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -239,7 +239,8 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected } /// - /// Asserts that the current is a single element inside the parent . + /// Asserts that the element of the current has a single + /// child element with the specified name. /// /// /// The full name of the expected child element of the current document's Root element. @@ -257,7 +258,8 @@ public AndConstraint HaveSingleElement(XName expected, stri } /// - /// Asserts that the number of elements in the parent matches the supplied amount. + /// Asserts that the element of the current has a the specified of + /// child elements with the specified name. /// /// /// The full name of the expected child element of the current document's Root element. From 3f75aa4b9c464a662ee14f4b0fe3dea591605b23 Mon Sep 17 00:00:00 2001 From: ABerg Date: Mon, 1 Nov 2021 13:21:48 +0100 Subject: [PATCH 08/46] Updated documentation --- docs/_pages/releases.md | 2 +- docs/_pages/xml.md | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/_pages/releases.md b/docs/_pages/releases.md index da75160c8e..69c265b3cd 100644 --- a/docs/_pages/releases.md +++ b/docs/_pages/releases.md @@ -87,7 +87,7 @@ sidebar: * Adding new overloads to all `GreaterOrEqualTo` and `LessOrEqualTo` assertions, adding the word `Than` - [#1673](https://github.com/fluentassertions/fluentassertions/pull/1673) * `BeAsync()` and `NotBeAsync()` are now also available on `MethodInfoSelectorAssertions` - [#1700](https://github.com/fluentassertions/fluentassertions/pull/1700) -* Added `BeSingle` and `HaveCount` for `XElement` - [#1681](https://github.com/fluentassertions/fluentassertions/pull/1673) +* Added `HaveSingleElement` and `HaveELementCount` for `XDocument` - [#1681](https://github.com/fluentassertions/fluentassertions/pull/1684) ### Fixes diff --git a/docs/_pages/xml.md b/docs/_pages/xml.md index 9ae9fdf40c..c265450b8f 100644 --- a/docs/_pages/xml.md +++ b/docs/_pages/xml.md @@ -12,6 +12,8 @@ Fluent Assertions has support for assertions on several of the LINQ-to-XML class ```csharp xDocument.Should().HaveRoot("configuration"); xDocument.Should().HaveElement("settings"); +xDocument.Should().HaveSingleElement("settings"); +xDocument.Should().HaveElementCount("settings", 1); xElement.Should().HaveValue("36"); xElement.Should().HaveAttribute("age", "36"); @@ -43,7 +45,4 @@ Chaining additional assertions on top of a particular (root) element is possible xDocument.Should().HaveElement("child") .Which.Should().BeOfType() .And.HaveAttribute("attr", "1"); - -xDocument.Should().HaveElement("child") - .Which.Should().HaveCount(2); ``` From 4fcd88281927c100074688e44c67678a12e3e0d5 Mon Sep 17 00:00:00 2001 From: ABerg Date: Mon, 1 Nov 2021 15:43:41 +0100 Subject: [PATCH 09/46] ApiCheck --- .../ApprovedApi/FluentAssertions/net47.verified.txt | 4 ++-- .../ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt | 4 ++-- .../ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt | 4 ++-- .../ApprovedApi/FluentAssertions/netstandard2.0.verified.txt | 4 ++-- .../ApprovedApi/FluentAssertions/netstandard2.1.verified.txt | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt index 7de1580d86..eecff2898c 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt @@ -2679,8 +2679,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } } @@ -2690,10 +2692,8 @@ namespace FluentAssertions.Xml protected override string Identifier { get; } public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt index f217aa78cd..320d35c228 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt @@ -2681,8 +2681,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } } @@ -2692,10 +2694,8 @@ namespace FluentAssertions.Xml protected override string Identifier { get; } public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt index ae32260e0c..9d26331482 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt @@ -2681,8 +2681,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } } @@ -2692,10 +2694,8 @@ namespace FluentAssertions.Xml protected override string Identifier { get; } public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt index ae61c5aab8..09f8dde7fa 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt @@ -2631,8 +2631,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } } @@ -2642,10 +2644,8 @@ namespace FluentAssertions.Xml protected override string Identifier { get; } public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt index 621eef8b9e..83603416fa 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt @@ -2681,8 +2681,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } } @@ -2692,10 +2694,8 @@ namespace FluentAssertions.Xml protected override string Identifier { get; } public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeSingle(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } From 5da1e4ec41ea2ffc4edbbbf227fbd955e6cd7baf Mon Sep 17 00:00:00 2001 From: ABerg Date: Mon, 1 Nov 2021 15:56:18 +0100 Subject: [PATCH 10/46] typo --- docs/_pages/releases.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_pages/releases.md b/docs/_pages/releases.md index 69c265b3cd..4e0e3b7a4e 100644 --- a/docs/_pages/releases.md +++ b/docs/_pages/releases.md @@ -87,7 +87,7 @@ sidebar: * Adding new overloads to all `GreaterOrEqualTo` and `LessOrEqualTo` assertions, adding the word `Than` - [#1673](https://github.com/fluentassertions/fluentassertions/pull/1673) * `BeAsync()` and `NotBeAsync()` are now also available on `MethodInfoSelectorAssertions` - [#1700](https://github.com/fluentassertions/fluentassertions/pull/1700) -* Added `HaveSingleElement` and `HaveELementCount` for `XDocument` - [#1681](https://github.com/fluentassertions/fluentassertions/pull/1684) +* Added `HaveSingleElement` and `HaveElementCount` for `XDocument` - [#1681](https://github.com/fluentassertions/fluentassertions/pull/1684) ### Fixes From 0cef179ffabe272d7a38d49a7122023dd5a9a479 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 5 Apr 2022 16:47:21 +0200 Subject: [PATCH 11/46] Review --- .../Xml/XDocumentAssertions.cs | 43 +++++++++++-------- .../Xml/XDocumentAssertionSpecs.cs | 14 +++--- docs/_pages/releases.md | 1 + 3 files changed, 32 insertions(+), 26 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index 6f9531d7a0..f5449ee1b5 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Xml; @@ -252,13 +253,13 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected /// /// Zero or more objects to format using the placeholders in . /// - public AndConstraint HaveSingleElement(XName expected, string because = "", params object[] becauseArgs) + public AndWhichConstraint HaveSingleElement(XName expected, string because = "", params object[] becauseArgs) { return HaveElementCount(expected, 1, because, becauseArgs); } /// - /// Asserts that the element of the current has a the specified of + /// Asserts that the element of the current has the specified of /// child elements with the specified name. /// /// @@ -272,35 +273,39 @@ public AndConstraint HaveSingleElement(XName expected, stri /// /// Zero or more objects to format using the placeholders in . /// - public AndConstraint HaveElementCount(XName expected, int count, string because = "", + public AndWhichConstraint HaveElementCount(XName expected, int count, string because = "", params object[] becauseArgs) { - if (Subject is null) - { - throw new InvalidOperationException("Cannot assert the count if the document itself is ."); - } + Execute.Assertion + .ForCondition(Subject is not null) + .BecauseOf(because, becauseArgs) + .FailWith("Cannot assert the count if the document itself is ."); Guard.ThrowIfArgumentIsNull(expected, nameof(expected), - "Cannot assert the document has an element count if the element name is *"); + "Cannot assert the document has an element count if the element name is ."); - Execute.Assertion + bool success = Execute.Assertion .ForCondition(Subject.Root is not null) .BecauseOf(because, becauseArgs) .FailWith( "Expected {context:subject} to have root element with child {0}{reason}, but it has no root element.", expected.ToString()); - var xElements = Subject.Root.Elements(expected); - int actualCount = xElements.Count(); - - Execute.Assertion - .ForCondition(actualCount == count) - .BecauseOf(because, becauseArgs) - .FailWith( - "Expected {context:subject} to have {0} child element(s) {1}{reason}, but found {2}.", - count, expected.ToString(), actualCount); + IEnumerable xElements = Enumerable.Empty(); + if (success) + { + xElements = Subject.Root.Elements(expected); + int actualCount = xElements.Count(); + + Execute.Assertion + .ForCondition(actualCount == count) + .BecauseOf(because, becauseArgs) + .FailWith( + "Expected {context:subject} to have {0} child element(s) {1}{reason}, but found {2}.", + count, expected.ToString(), actualCount); + } - return new AndConstraint(this); + return new AndWhichConstraint(this, xElements.First()); } /// diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index c847ca39a2..9f92683428 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1162,7 +1162,7 @@ public void When_asserting_a_document_has_an_element_with_a_null_xname_it_should #region HaveSingleElement [Fact] - public void When_asserting_document_has_a_single_child_element_and_it_does_it_should_succeed() + public void A_single_expected_child_element_with_the_specified_name_should_be_accepted() { // Arrange var document = XDocument.Parse( @@ -1175,7 +1175,7 @@ public void When_asserting_document_has_a_single_child_element_and_it_does_it_sh } [Fact] - public void When_asserting_document_has_single_child_element_but_it_does_have_two_it_should_fail() + public void Multiple_child_elements_with_the_specified_name_should_fail_the_test() { // Arrange var document = XDocument.Parse( @@ -1185,15 +1185,15 @@ public void When_asserting_document_has_single_child_element_but_it_does_have_tw "); // Act - Action act = () => document.Should().HaveSingleElement("child"); + Action act = () => document.Should().HaveSingleElement("child", "because we want to test the failure {0}", "message"); // Assert act.Should().Throw().WithMessage( - "Expected document to have 1 child element(s) \"child\", but found 2."); + "Expected document to have 1 child element(s) \"child\"*failure message*, but found 2."); } [Fact] - public void When_asserting_a_null_xDocument_to_have_a_single_element_it_should_fail() + public void Cannot_ensure_a_single_element_if_the_document_is_null() { // Arrange XDocument xDocument = null; @@ -1202,7 +1202,7 @@ public void When_asserting_a_null_xDocument_to_have_a_single_element_it_should_f Action act = () => xDocument.Should().HaveSingleElement("child"); // Assert - act.Should().Throw().WithMessage( + act.Should().Throw().WithMessage( "Cannot assert the count if the document itself is ."); } @@ -1253,7 +1253,7 @@ public void When_asserting_a_null_xDocument_to_have_a_element_count_it_should_fa Action act = () => xDocument.Should().HaveElementCount("child", 1); // Assert - act.Should().Throw().WithMessage( + act.Should().Throw().WithMessage( "Cannot assert the count if the document itself is ."); } diff --git a/docs/_pages/releases.md b/docs/_pages/releases.md index 4e0e3b7a4e..5ea297e557 100644 --- a/docs/_pages/releases.md +++ b/docs/_pages/releases.md @@ -23,6 +23,7 @@ sidebar: * Added `NotBe` for nullable boolean values - [#1865](https://github.com/fluentassertions/fluentassertions/pull/1865) * Added a new overload to `MatchRegex()` to assert on the number of regex matches - [#1869](https://github.com/fluentassertions/fluentassertions/pull/1869) * Added difference to numeric assertion failure messages - [#1859](https://github.com/fluentassertions/fluentassertions/pull/1859) +* Added `HaveSingleElement` and `HaveElementCount` for `XDocument` - [#1684](https://github.com/fluentassertions/fluentassertions/pull/1684) ### Fixes * `EnumAssertions.Be` did not determine the caller name - [#1835](https://github.com/fluentassertions/fluentassertions/pull/1835) From 6b41efc220309fb256954aa46bd469059aba6cec Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 5 Apr 2022 16:52:54 +0200 Subject: [PATCH 12/46] Update PR link --- docs/_pages/releases.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_pages/releases.md b/docs/_pages/releases.md index 5ea297e557..2a6741f66f 100644 --- a/docs/_pages/releases.md +++ b/docs/_pages/releases.md @@ -23,7 +23,7 @@ sidebar: * Added `NotBe` for nullable boolean values - [#1865](https://github.com/fluentassertions/fluentassertions/pull/1865) * Added a new overload to `MatchRegex()` to assert on the number of regex matches - [#1869](https://github.com/fluentassertions/fluentassertions/pull/1869) * Added difference to numeric assertion failure messages - [#1859](https://github.com/fluentassertions/fluentassertions/pull/1859) -* Added `HaveSingleElement` and `HaveElementCount` for `XDocument` - [#1684](https://github.com/fluentassertions/fluentassertions/pull/1684) +* Added `HaveSingleElement` and `HaveElementCount` for `XDocument` - [#1880](https://github.com/fluentassertions/fluentassertions/pull/1880) ### Fixes * `EnumAssertions.Be` did not determine the caller name - [#1835](https://github.com/fluentassertions/fluentassertions/pull/1835) From 4d79a6fb9bd528211986bb0588f34ae6a7ad84a7 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 5 Apr 2022 16:53:54 +0200 Subject: [PATCH 13/46] Approve API --- .../ApprovedApi/FluentAssertions/net47.verified.txt | 4 ++-- .../ApprovedApi/FluentAssertions/net6.0.verified.txt | 2 ++ .../ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt | 4 ++-- .../ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt | 4 ++-- .../ApprovedApi/FluentAssertions/netstandard2.0.verified.txt | 4 ++-- .../ApprovedApi/FluentAssertions/netstandard2.1.verified.txt | 4 ++-- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt index eecff2898c..6537688adb 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt @@ -2679,10 +2679,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt index 48dce352e8..d4039f33d9 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt @@ -2799,8 +2799,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt index 320d35c228..caa098cdb5 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt @@ -2681,10 +2681,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt index 9d26331482..4d35c4e70b 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt @@ -2681,10 +2681,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt index 09f8dde7fa..10957a274f 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt @@ -2631,10 +2631,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt index 83603416fa..d4294c1404 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt @@ -2681,10 +2681,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } } From 1f973523ad5a059db9fc694f765280045b93d724 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 6 Apr 2022 07:17:56 +0200 Subject: [PATCH 14/46] Use `OccurrenceConstraint` for asserting on counts --- .../Xml/XDocumentAssertions.cs | 44 ++++++++++++++++--- .../FluentAssertions/net47.verified.txt | 3 +- .../FluentAssertions/net6.0.verified.txt | 3 +- .../netcoreapp2.1.verified.txt | 3 +- .../netcoreapp3.0.verified.txt | 3 +- .../netstandard2.0.verified.txt | 3 +- .../netstandard2.1.verified.txt | 3 +- .../Xml/XDocumentAssertionSpecs.cs | 43 +++++++++++++++--- 8 files changed, 88 insertions(+), 17 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index f5449ee1b5..e613959ec0 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -196,6 +196,32 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected return HaveElement(XNamespace.None + expected, because, becauseArgs); } + /// + /// Asserts that the element of the current has a direct + /// child element with the specified name. + /// + /// + /// The name of the expected child element of the current document's Root element. + /// + /// + /// A constraint of the expected count of elements in the document. + /// + /// + /// A formatted phrase as is supported by explaining why the assertion + /// is needed. If the phrase does not start with the word because, it is prepended automatically. + /// + /// + /// Zero or more objects to format using the placeholders in . + /// + public AndWhichConstraint HaveElement(string expected, OccurrenceConstraint occurrenceConstraint, + string because = "", params object[] becauseArgs) + { + Guard.ThrowIfArgumentIsNull(expected, nameof(expected), + "Cannot assert the document has an element if the expected name is *"); + + return HaveElement(XNamespace.None + expected, occurrenceConstraint, because, becauseArgs); + } + /// /// Asserts that the element of the current has a direct /// child element with the specified name. @@ -240,6 +266,8 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected } /// + /// Special overload for with + /// occurrence . /// Asserts that the element of the current has a single /// child element with the specified name. /// @@ -255,17 +283,19 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected /// public AndWhichConstraint HaveSingleElement(XName expected, string because = "", params object[] becauseArgs) { - return HaveElementCount(expected, 1, because, becauseArgs); + return HaveElement(expected, Exactly.Once(), because, becauseArgs); } /// - /// Asserts that the element of the current has the specified of + /// Asserts that the element of the current has the specified of /// child elements with the specified name. /// /// /// The full name of the expected child element of the current document's Root element. /// - /// The expected count of elements in the document. + /// + /// A constraint of the expected count of elements in the document. + /// /// /// A formatted phrase as is supported by explaining why the assertion /// is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -273,7 +303,8 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected /// /// Zero or more objects to format using the placeholders in . /// - public AndWhichConstraint HaveElementCount(XName expected, int count, string because = "", + public AndWhichConstraint HaveElement(XName expected, + OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { Execute.Assertion @@ -292,17 +323,18 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected expected.ToString()); IEnumerable xElements = Enumerable.Empty(); + if (success) { xElements = Subject.Root.Elements(expected); int actualCount = xElements.Count(); Execute.Assertion - .ForCondition(actualCount == count) + .ForConstraint(occurrenceConstraint, actualCount) .BecauseOf(because, becauseArgs) .FailWith( "Expected {context:subject} to have {0} child element(s) {1}{reason}, but found {2}.", - count, expected.ToString(), actualCount); + occurrenceConstraint.ExpectedCount, expected.ToString(), actualCount); } return new AndWhichConstraint(this, xElements.First()); diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt index 6537688adb..b366beb676 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt @@ -2679,7 +2679,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt index d4039f33d9..27431e3fa8 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt @@ -2799,7 +2799,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt index caa098cdb5..d041bc0ba9 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt @@ -2681,7 +2681,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt index 4d35c4e70b..8fa00e11c8 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt @@ -2681,7 +2681,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt index 10957a274f..5c03de11b7 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt @@ -2631,7 +2631,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt index d4294c1404..99a6b08a3f 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt @@ -2681,7 +2681,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementCount(System.Xml.Linq.XName expected, int count, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index 9f92683428..1fcf2b11d0 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1174,6 +1174,38 @@ public void A_single_expected_child_element_with_the_specified_name_should_be_ac document.Should().HaveSingleElement("child"); } + [Fact] + public void Chaining_which_after_asserting_on_singularity_passes() + { + // Arrange + var document = XDocument.Parse( + @" + + "); + + // Act / Assert + document.Should().HaveSingleElement("child").Which.Should().HaveAttribute("foo", "bar"); + } + + [Fact] + public void Chaining_which_after_asserting_on_singularity_fails_if_element_is_not_single() + { + // Arrange + var document = XDocument.Parse( + @" + + + "); + + // Act + Action act = () => document.Should().HaveSingleElement("child") + .Which.Should().HaveAttribute("foo", "bar"); + + // Assert + act.Should().Throw() + .WithMessage("Expected document to have 1 child element(s) \"child\", but found 2."); + } + [Fact] public void Multiple_child_elements_with_the_specified_name_should_fail_the_test() { @@ -1185,7 +1217,8 @@ public void Multiple_child_elements_with_the_specified_name_should_fail_the_test "); // Act - Action act = () => document.Should().HaveSingleElement("child", "because we want to test the failure {0}", "message"); + Action act = () => document.Should().HaveSingleElement("child", + "because we want to test the failure {0}", "message"); // Assert act.Should().Throw().WithMessage( @@ -1208,7 +1241,7 @@ public void Cannot_ensure_a_single_element_if_the_document_is_null() #endregion - #region HaveElementCount + #region HaveElement (with occurrence) [Fact] public void When_asserting_document_has_two_child_elements_and_it_does_it_should_succeed() @@ -1221,7 +1254,7 @@ public void When_asserting_document_has_two_child_elements_and_it_does_it_should "); // Act / Assert - document.Should().HaveElementCount("child", 2); + document.Should().HaveElement("child", Exactly.Twice()); } [Fact] @@ -1236,7 +1269,7 @@ public void When_asserting_document_has_two_child_elements_but_it_does_have_thre "); // Act - Action act = () => document.Should().HaveElementCount("child", 2); + Action act = () => document.Should().HaveElement("child", Exactly.Twice()); // Assert act.Should().Throw().WithMessage( @@ -1250,7 +1283,7 @@ public void When_asserting_a_null_xDocument_to_have_a_element_count_it_should_fa XDocument xDocument = null; // Act - Action act = () => xDocument.Should().HaveElementCount("child", 1); + Action act = () => xDocument.Should().HaveElement("child", AtLeast.Once()); // Assert act.Should().Throw().WithMessage( From 57cdde1b4737f587dd3ca278bea03300cac4f851 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 6 Apr 2022 07:26:09 +0200 Subject: [PATCH 15/46] Minor naming corrections --- Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index 1fcf2b11d0..d7bb8b86c4 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1244,7 +1244,7 @@ public void Cannot_ensure_a_single_element_if_the_document_is_null() #region HaveElement (with occurrence) [Fact] - public void When_asserting_document_has_two_child_elements_and_it_does_it_should_succeed() + public void When_asserting_document_has_two_child_elements_and_it_does_it_succeeds() { // Arrange var document = XDocument.Parse( @@ -1258,7 +1258,7 @@ public void When_asserting_document_has_two_child_elements_and_it_does_it_should } [Fact] - public void When_asserting_document_has_two_child_elements_but_it_does_have_three_it_should_fail() + public void When_asserting_document_has_two_child_elements_but_it_does_have_three_it_fails() { // Arrange var document = XDocument.Parse( @@ -1277,7 +1277,7 @@ public void When_asserting_document_has_two_child_elements_but_it_does_have_thre } [Fact] - public void When_asserting_a_null_xDocument_to_have_a_element_count_it_should_fail() + public void When_asserting_a_null_xDocument_to_have_an_element_count_it_should_fail() { // Arrange XDocument xDocument = null; From b642a55f541711cb25cfac0f5efffd5b98f016aa Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 6 Apr 2022 07:36:11 +0200 Subject: [PATCH 16/46] Minor error message improvements --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index e613959ec0..362fd180f7 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -134,7 +134,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected params object[] becauseArgs) { Guard.ThrowIfArgumentIsNull(expected, nameof(expected), - "Cannot assert the document has a root element if the expected name is *"); + "Cannot assert the document has a root element if the expected name is ."); return HaveRoot(XNamespace.None + expected, because, becauseArgs); } @@ -159,7 +159,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected } Guard.ThrowIfArgumentIsNull(expected, nameof(expected), - "Cannot assert the document has a root element if the expected name is *"); + "Cannot assert the document has a root element if the expected name is ."); XElement root = Subject.Root; @@ -191,7 +191,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected params object[] becauseArgs) { Guard.ThrowIfArgumentIsNull(expected, nameof(expected), - "Cannot assert the document has an element if the expected name is *"); + "Cannot assert the document has an element if the expected name is ."); return HaveElement(XNamespace.None + expected, because, becauseArgs); } @@ -217,7 +217,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected string because = "", params object[] becauseArgs) { Guard.ThrowIfArgumentIsNull(expected, nameof(expected), - "Cannot assert the document has an element if the expected name is *"); + "Cannot assert the document has an element if the expected name is ."); return HaveElement(XNamespace.None + expected, occurrenceConstraint, because, becauseArgs); } @@ -245,7 +245,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected } Guard.ThrowIfArgumentIsNull(expected, nameof(expected), - "Cannot assert the document has an element if the expected name is *"); + "Cannot assert the document has an element if the expected name is ."); Execute.Assertion .ForCondition(Subject.Root is not null) From 45bf499dadec704ae8b167309d74705c07464d47 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 6 Apr 2022 07:44:59 +0200 Subject: [PATCH 17/46] Re-order tests --- .../Xml/XDocumentAssertionSpecs.cs | 102 +++++++++--------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index d7bb8b86c4..757ed5de14 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1159,80 +1159,49 @@ public void When_asserting_a_document_has_an_element_with_a_null_xname_it_should #endregion - #region HaveSingleElement + #region HaveElement (with occurrence) [Fact] - public void A_single_expected_child_element_with_the_specified_name_should_be_accepted() + public void When_asserting_document_has_two_child_elements_and_it_does_it_succeeds() { // Arrange var document = XDocument.Parse( @" + "); // Act / Assert - document.Should().HaveSingleElement("child"); - } - - [Fact] - public void Chaining_which_after_asserting_on_singularity_passes() - { - // Arrange - var document = XDocument.Parse( - @" - - "); - - // Act / Assert - document.Should().HaveSingleElement("child").Which.Should().HaveAttribute("foo", "bar"); - } - - [Fact] - public void Chaining_which_after_asserting_on_singularity_fails_if_element_is_not_single() - { - // Arrange - var document = XDocument.Parse( - @" - - - "); - - // Act - Action act = () => document.Should().HaveSingleElement("child") - .Which.Should().HaveAttribute("foo", "bar"); - - // Assert - act.Should().Throw() - .WithMessage("Expected document to have 1 child element(s) \"child\", but found 2."); + document.Should().HaveElement("child", Exactly.Twice()); } [Fact] - public void Multiple_child_elements_with_the_specified_name_should_fail_the_test() + public void When_asserting_document_has_two_child_elements_but_it_does_have_three_it_fails() { // Arrange var document = XDocument.Parse( @" + "); // Act - Action act = () => document.Should().HaveSingleElement("child", - "because we want to test the failure {0}", "message"); + Action act = () => document.Should().HaveElement("child", Exactly.Twice()); // Assert act.Should().Throw().WithMessage( - "Expected document to have 1 child element(s) \"child\"*failure message*, but found 2."); + "Expected document to have 2 child element(s) \"child\", but found 3."); } [Fact] - public void Cannot_ensure_a_single_element_if_the_document_is_null() + public void When_asserting_a_null_xDocument_to_have_an_element_count_it_should_fail() { // Arrange XDocument xDocument = null; // Act - Action act = () => xDocument.Should().HaveSingleElement("child"); + Action act = () => xDocument.Should().HaveElement("child", AtLeast.Once()); // Assert act.Should().Throw().WithMessage( @@ -1241,49 +1210,80 @@ public void Cannot_ensure_a_single_element_if_the_document_is_null() #endregion - #region HaveElement (with occurrence) + #region HaveSingleElement [Fact] - public void When_asserting_document_has_two_child_elements_and_it_does_it_succeeds() + public void A_single_expected_child_element_with_the_specified_name_should_be_accepted() { // Arrange var document = XDocument.Parse( @" - "); // Act / Assert - document.Should().HaveElement("child", Exactly.Twice()); + document.Should().HaveSingleElement("child"); } [Fact] - public void When_asserting_document_has_two_child_elements_but_it_does_have_three_it_fails() + public void Chaining_which_after_asserting_on_singularity_passes() + { + // Arrange + var document = XDocument.Parse( + @" + + "); + + // Act / Assert + document.Should().HaveSingleElement("child").Which.Should().HaveAttribute("foo", "bar"); + } + + [Fact] + public void Chaining_which_after_asserting_on_singularity_fails_if_element_is_not_single() + { + // Arrange + var document = XDocument.Parse( + @" + + + "); + + // Act + Action act = () => document.Should().HaveSingleElement("child") + .Which.Should().HaveAttribute("foo", "bar"); + + // Assert + act.Should().Throw() + .WithMessage("Expected document to have 1 child element(s) \"child\", but found 2."); + } + + [Fact] + public void Multiple_child_elements_with_the_specified_name_should_fail_the_test() { // Arrange var document = XDocument.Parse( @" - "); // Act - Action act = () => document.Should().HaveElement("child", Exactly.Twice()); + Action act = () => document.Should().HaveSingleElement("child", + "because we want to test the failure {0}", "message"); // Assert act.Should().Throw().WithMessage( - "Expected document to have 2 child element(s) \"child\", but found 3."); + "Expected document to have 1 child element(s) \"child\"*failure message*, but found 2."); } [Fact] - public void When_asserting_a_null_xDocument_to_have_an_element_count_it_should_fail() + public void Cannot_ensure_a_single_element_if_the_document_is_null() { // Arrange XDocument xDocument = null; // Act - Action act = () => xDocument.Should().HaveElement("child", AtLeast.Once()); + Action act = () => xDocument.Should().HaveSingleElement("child"); // Assert act.Should().Throw().WithMessage( From 0e58c84a1ef5bec72aa8560502db7738a7d85b02 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 6 Apr 2022 07:50:50 +0200 Subject: [PATCH 18/46] Add line break --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index 362fd180f7..92666cfedf 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -213,8 +213,8 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected /// /// Zero or more objects to format using the placeholders in . /// - public AndWhichConstraint HaveElement(string expected, OccurrenceConstraint occurrenceConstraint, - string because = "", params object[] becauseArgs) + public AndWhichConstraint HaveElement(string expected, + OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { Guard.ThrowIfArgumentIsNull(expected, nameof(expected), "Cannot assert the document has an element if the expected name is ."); From 87f5090e3354bbf3ecfbc7b4c869095b05b3a39c Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 6 Apr 2022 07:52:40 +0200 Subject: [PATCH 19/46] Minor comment improvement --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index 92666cfedf..cbcf3a5302 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -287,7 +287,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected } /// - /// Asserts that the element of the current has the specified of + /// Asserts that the element of the current has the specified occurrence of /// child elements with the specified name. /// /// From ec0ae7ff189085ecfa90c914786e975f9f23d80c Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 6 Apr 2022 08:11:01 +0200 Subject: [PATCH 20/46] Fix `AndWhichConstraint` for multiple `XElement` --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index cbcf3a5302..35e23e1ef5 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -337,7 +337,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected occurrenceConstraint.ExpectedCount, expected.ToString(), actualCount); } - return new AndWhichConstraint(this, xElements.First()); + return new AndWhichConstraint(this, xElements); } /// From 53663a33931b09690bff64c3686dc9b9039196e3 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 6 Apr 2022 08:22:55 +0200 Subject: [PATCH 21/46] Add missing test --- .../Xml/XDocumentAssertionSpecs.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index 757ed5de14..89a39fef90 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1194,6 +1194,26 @@ public void When_asserting_document_has_two_child_elements_but_it_does_have_thre "Expected document to have 2 child element(s) \"child\", but found 3."); } + [Fact] + public void Chaining_which_after_asserting_document_has_more_than_two_child_elements_it_fails() + { + // Arrange + var document = XDocument.Parse( + @" + + + + "); + + // Act + Action act = () => document.Should().HaveElement("child", AtLeast.Twice()) + .Which.Should().NotBeNull(); + + // Assert + act.Should().Throw().WithMessage( + "More than one object found. FluentAssertions cannot determine which object is meant*"); + } + [Fact] public void When_asserting_a_null_xDocument_to_have_an_element_count_it_should_fail() { From 5a9add8ce16ef6d57b72052c05dcb9a06c3a3ed1 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 6 Apr 2022 08:30:11 +0200 Subject: [PATCH 22/46] Minor test naming improvement --- Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index 89a39fef90..bcaf81be97 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1195,7 +1195,7 @@ public void When_asserting_document_has_two_child_elements_but_it_does_have_thre } [Fact] - public void Chaining_which_after_asserting_document_has_more_than_two_child_elements_it_fails() + public void Chaining_which_after_asserting_and_the_document_has_more_than_two_child_elements_it_fails() { // Arrange var document = XDocument.Parse( From 64630efdb05ae9e45338d786d20471a303cd8607 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 6 Apr 2022 10:57:57 +0200 Subject: [PATCH 23/46] Update release notes --- docs/_pages/releases.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/_pages/releases.md b/docs/_pages/releases.md index 2a6741f66f..c79d9dbf71 100644 --- a/docs/_pages/releases.md +++ b/docs/_pages/releases.md @@ -23,7 +23,7 @@ sidebar: * Added `NotBe` for nullable boolean values - [#1865](https://github.com/fluentassertions/fluentassertions/pull/1865) * Added a new overload to `MatchRegex()` to assert on the number of regex matches - [#1869](https://github.com/fluentassertions/fluentassertions/pull/1869) * Added difference to numeric assertion failure messages - [#1859](https://github.com/fluentassertions/fluentassertions/pull/1859) -* Added `HaveSingleElement` and `HaveElementCount` for `XDocument` - [#1880](https://github.com/fluentassertions/fluentassertions/pull/1880) +* Added `HaveSingleElement` and overload for `HaveElement` for `XDocument` to assert on number of XML nodes - [#1880](https://github.com/fluentassertions/fluentassertions/pull/1880) ### Fixes * `EnumAssertions.Be` did not determine the caller name - [#1835](https://github.com/fluentassertions/fluentassertions/pull/1835) @@ -88,8 +88,6 @@ sidebar: * Adding new overloads to all `GreaterOrEqualTo` and `LessOrEqualTo` assertions, adding the word `Than` - [#1673](https://github.com/fluentassertions/fluentassertions/pull/1673) * `BeAsync()` and `NotBeAsync()` are now also available on `MethodInfoSelectorAssertions` - [#1700](https://github.com/fluentassertions/fluentassertions/pull/1700) -* Added `HaveSingleElement` and `HaveElementCount` for `XDocument` - [#1681](https://github.com/fluentassertions/fluentassertions/pull/1684) - ### Fixes * Prevent exceptions when asserting on `ImmutableArray` - [#1668](https://github.com/fluentassertions/fluentassertions/pull/1668) From f713661611840766250bd525f159d7d12c928df5 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 6 Apr 2022 11:01:45 +0200 Subject: [PATCH 24/46] Update XML documentation --- docs/_pages/xml.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/_pages/xml.md b/docs/_pages/xml.md index c265450b8f..1232b1a354 100644 --- a/docs/_pages/xml.md +++ b/docs/_pages/xml.md @@ -13,7 +13,8 @@ Fluent Assertions has support for assertions on several of the LINQ-to-XML class xDocument.Should().HaveRoot("configuration"); xDocument.Should().HaveElement("settings"); xDocument.Should().HaveSingleElement("settings"); -xDocument.Should().HaveElementCount("settings", 1); +xDocument.Should().HaveElement("settings", Exactly.Once()); +xDocument.Should().HaveElement("settings", AtLeast.Twice()); xElement.Should().HaveValue("36"); xElement.Should().HaveAttribute("age", "36"); From f33c8b5cc3aeacf2cfe8027d3fa32e80bb72dd7f Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Fri, 8 Apr 2022 05:44:36 +0200 Subject: [PATCH 25/46] Fix some redundant XML documentation failures --- .../Xml/XDocumentAssertions.cs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index 35e23e1ef5..24e28f472e 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -178,7 +178,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected /// child element with the specified name. /// /// - /// The name of the expected child element of the current document's Root element. + /// The name of the expected child element of the current document's element. /// /// /// A formatted phrase as is supported by explaining why the assertion @@ -201,10 +201,10 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected /// child element with the specified name. /// /// - /// The name of the expected child element of the current document's Root element. + /// The name of the expected child element of the current document's element. /// /// - /// A constraint of the expected count of elements in the document. + /// A constraint specifying the number of times the specified elements should appear. /// /// /// A formatted phrase as is supported by explaining why the assertion @@ -227,7 +227,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected /// child element with the specified name. /// /// - /// The full name of the expected child element of the current document's Root element. + /// The full name of the expected child element of the current document's element. /// /// /// A formatted phrase as is supported by explaining why the assertion @@ -266,13 +266,11 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected } /// - /// Special overload for with - /// occurrence . - /// Asserts that the element of the current has a single + /// Asserts that the element of the current has a _single_ /// child element with the specified name. /// /// - /// The full name of the expected child element of the current document's Root element. + /// The full name of the expected child element of the current document's element. /// /// /// A formatted phrase as is supported by explaining why the assertion @@ -291,10 +289,10 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected /// child elements with the specified name. /// /// - /// The full name of the expected child element of the current document's Root element. + /// The full name of the expected child element of the current document's element. /// /// - /// A constraint of the expected count of elements in the document. + /// A constraint specifying the number of times the specified elements should appear. /// /// /// A formatted phrase as is supported by explaining why the assertion From 95a031ff12d4ea990097abcde658e9d690032670 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Fri, 8 Apr 2022 05:58:06 +0200 Subject: [PATCH 26/46] Add missing overload for `HaveSingleElement()` --- .../Xml/XDocumentAssertions.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index 24e28f472e..ed07c58552 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -284,6 +284,25 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected return HaveElement(expected, Exactly.Once(), because, becauseArgs); } + /// + /// Asserts that the element of the current has a _single_ + /// child element with the specified name. + /// + /// + /// The full name of the expected child element of the current document's element. + /// + /// + /// A formatted phrase as is supported by explaining why the assertion + /// is needed. If the phrase does not start with the word because, it is prepended automatically. + /// + /// + /// Zero or more objects to format using the placeholders in . + /// + public AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) + { + return HaveElement(XNamespace.None + expected, Exactly.Once(), because, becauseArgs); + } + /// /// Asserts that the element of the current has the specified occurrence of /// child elements with the specified name. From fbc583d149a8cd170410c45f7f65de241d339692 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Fri, 8 Apr 2022 06:03:09 +0200 Subject: [PATCH 27/46] Verify the API changes --- .../ApprovedApi/FluentAssertions/net47.verified.txt | 1 + .../ApprovedApi/FluentAssertions/net6.0.verified.txt | 1 + .../ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt | 1 + .../ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt | 1 + .../ApprovedApi/FluentAssertions/netstandard2.0.verified.txt | 1 + .../ApprovedApi/FluentAssertions/netstandard2.1.verified.txt | 1 + 6 files changed, 6 insertions(+) diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt index b366beb676..58a8037a6d 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt @@ -2683,6 +2683,7 @@ namespace FluentAssertions.Xml public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt index 27431e3fa8..58fd16b36a 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt @@ -2803,6 +2803,7 @@ namespace FluentAssertions.Xml public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt index d041bc0ba9..709a3e8cd4 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt @@ -2685,6 +2685,7 @@ namespace FluentAssertions.Xml public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt index 8fa00e11c8..6d9f95993a 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt @@ -2685,6 +2685,7 @@ namespace FluentAssertions.Xml public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt index 5c03de11b7..4fecc024e4 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt @@ -2635,6 +2635,7 @@ namespace FluentAssertions.Xml public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt index 99a6b08a3f..29952cba4e 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt @@ -2685,6 +2685,7 @@ namespace FluentAssertions.Xml public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } From e652c2f727f7f09738c7d669d43865d425ad1c57 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Fri, 8 Apr 2022 06:04:02 +0200 Subject: [PATCH 28/46] Remove literal names in test names --- Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index bcaf81be97..cf10b7f924 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1215,7 +1215,7 @@ public void Chaining_which_after_asserting_and_the_document_has_more_than_two_ch } [Fact] - public void When_asserting_a_null_xDocument_to_have_an_element_count_it_should_fail() + public void When_asserting_a_null_document_to_have_an_element_count_it_should_fail() { // Arrange XDocument xDocument = null; From d805e28c85ec207656b4e5fe747bd3fbca0d4442 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Fri, 8 Apr 2022 06:20:21 +0200 Subject: [PATCH 29/46] Add the `HaveSingleElement`, `HaveElement` to `XElementAssertions` as well --- .../Xml/XDocumentAssertions.cs | 4 +- .../Xml/XElementAssertions.cs | 115 ++++++++++++ .../Xml/XDocumentAssertionSpecs.cs | 15 +- .../Xml/XElementAssertionSpecs.cs | 166 ++++++++++++++++++ 4 files changed, 297 insertions(+), 3 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index ed07c58552..41e46f3d35 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -266,7 +266,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected } /// - /// Asserts that the element of the current has a _single_ + /// Asserts that the element of the current has a single /// child element with the specified name. /// /// @@ -285,7 +285,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected } /// - /// Asserts that the element of the current has a _single_ + /// Asserts that the element of the current has a single /// child element with the specified name. /// /// diff --git a/Src/FluentAssertions/Xml/XElementAssertions.cs b/Src/FluentAssertions/Xml/XElementAssertions.cs index c0f2a0d4cb..2dd871607c 100644 --- a/Src/FluentAssertions/Xml/XElementAssertions.cs +++ b/Src/FluentAssertions/Xml/XElementAssertions.cs @@ -1,5 +1,7 @@ using System; +using System.Collections.Generic; using System.Diagnostics; +using System.Linq; using System.Xml; using System.Xml.Linq; using FluentAssertions.Common; @@ -288,6 +290,119 @@ public AndConstraint HaveValue(string expected, string becau return new AndWhichConstraint(this, xElement); } + /// + /// Asserts that the of the current has a single + /// child element with the specified name. + /// + /// + /// The full name of the expected child element of the current element's . + /// + /// + /// A formatted phrase as is supported by explaining why the assertion + /// is needed. If the phrase does not start with the word because, it is prepended automatically. + /// + /// + /// Zero or more objects to format using the placeholders in . + /// + public AndWhichConstraint HaveSingleElement(XName expected, string because = "", params object[] becauseArgs) + { + return HaveElement(expected, Exactly.Once(), because, becauseArgs); + } + + /// + /// Asserts that the of the current has a single + /// child element with the specified name. + /// + /// + /// The full name of the expected child element of the current element's . + /// + /// + /// A formatted phrase as is supported by explaining why the assertion + /// is needed. If the phrase does not start with the word because, it is prepended automatically. + /// + /// + /// Zero or more objects to format using the placeholders in . + /// + public AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) + { + return HaveElement(XNamespace.None + expected, Exactly.Once(), because, becauseArgs); + } + + /// + /// Asserts that the of the current has the specified occurrence of + /// child elements with the specified name. + /// + /// + /// The full name of the expected child element of the current element's . + /// + /// + /// A constraint specifying the number of times the specified elements should appear. + /// + /// + /// A formatted phrase as is supported by explaining why the assertion + /// is needed. If the phrase does not start with the word because, it is prepended automatically. + /// + /// + /// Zero or more objects to format using the placeholders in . + /// + public AndWhichConstraint HaveElement(XName expected, + OccurrenceConstraint occurrenceConstraint, string because = "", + params object[] becauseArgs) + { + Guard.ThrowIfArgumentIsNull(expected, nameof(expected), + "Cannot assert the element has an element count if the element name is ."); + + bool success = Execute.Assertion + .ForCondition(Subject is not null) + .BecauseOf(because, becauseArgs) + .FailWith( + "Expected {context:subject} to have an element with count of {0}{reason}, but the element itself is .", + expected.ToString()); + + IEnumerable xElements = Enumerable.Empty(); + + if (success) + { + xElements = Subject.Elements(expected); + int actualCount = xElements.Count(); + + Execute.Assertion + .ForConstraint(occurrenceConstraint, actualCount) + .BecauseOf(because, becauseArgs) + .FailWith( + "Expected {context:subject} to have {0} child element(s) {1}{reason}, but found {2}.", + occurrenceConstraint.ExpectedCount, expected.ToString(), actualCount); + } + + return new AndWhichConstraint(this, xElements); + } + + /// + /// Asserts that the of the current has a direct + /// child element with the specified name. + /// + /// + /// The name of the expected child element of the current element's . + /// + /// + /// A constraint specifying the number of times the specified elements should appear. + /// + /// + /// A formatted phrase as is supported by explaining why the assertion + /// is needed. If the phrase does not start with the word because, it is prepended automatically. + /// + /// + /// Zero or more objects to format using the placeholders in . + /// + public AndWhichConstraint HaveElement(string expected, + OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) + { + Guard.ThrowIfArgumentIsNull(expected, nameof(expected), + "Cannot assert the element has an element if the expected name is ."); + + return HaveElement(XNamespace.None + expected, occurrenceConstraint, because, becauseArgs); + } + /// /// Returns the type of the subject the assertion applies on. /// diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index cf10b7f924..685c1b7b42 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1245,6 +1245,19 @@ public void A_single_expected_child_element_with_the_specified_name_should_be_ac document.Should().HaveSingleElement("child"); } + [Fact] + public void A_single_expected_child_element_with_the_specified_xml_name_should_be_accepted() + { + // Arrange + var document = XDocument.Parse( + @" + + "); + + // Act / Assert + document.Should().HaveSingleElement(XNamespace.None + "child"); + } + [Fact] public void Chaining_which_after_asserting_on_singularity_passes() { @@ -1257,7 +1270,7 @@ public void Chaining_which_after_asserting_on_singularity_passes() // Act / Assert document.Should().HaveSingleElement("child").Which.Should().HaveAttribute("foo", "bar"); } - + [Fact] public void Chaining_which_after_asserting_on_singularity_fails_if_element_is_not_single() { diff --git a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs index 3f3364b47a..89ccee047d 100644 --- a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs @@ -1228,5 +1228,171 @@ public void When_asserting_element_has_a_child_element_with_an_empty_name_it_sho } #endregion + + #region HaveElement (with occurrence) + + [Fact] + public void Element_has_two_child_elements_and_it_expected_does_it_succeeds() + { + // Arrange + var element = XElement.Parse( + @" + + + "); + + // Act / Assert + element.Should().HaveElement("child", Exactly.Twice()); + } + + [Fact] + public void Element_has_two_child_elements_and_three_expected_it_fails() + { + // Arrange + var element = XElement.Parse( + @" + + + + "); + + // Act + Action act = () => element.Should().HaveElement("child", Exactly.Twice()); + + // Assert + act.Should().Throw().WithMessage( + "Expected element to have 2 child element(s) \"child\", but found 3."); + } + + [Fact] + public void Chaining_which_after_asserting_and_the_element_has_more_than_two_child_elements_it_fails() + { + // Arrange + var element = XElement.Parse( + @" + + + + "); + + // Act + Action act = () => element.Should().HaveElement("child", AtLeast.Twice()) + .Which.Should().NotBeNull(); + + // Assert + act.Should().Throw().WithMessage( + "More than one object found. FluentAssertions cannot determine which object is meant*"); + } + + [Fact] + public void Null_element_is_expected_to_have_an_element_count_it_should_fail() + { + // Arrange + XElement xElement = null; + + // Act + Action act = () => xElement.Should().HaveElement("child", AtLeast.Once()); + + // Assert + act.Should().Throw().WithMessage( + "Expected* to have an element with count of *, but the element itself is ."); + } + + #endregion + + #region HaveSingleElement + + [Fact] + public void A_single_expected_child_element_with_the_specified_name_should_be_accepted() + { + // Arrange + var element = XElement.Parse( + @" + + "); + + // Act / Assert + element.Should().HaveSingleElement("child"); + } + + [Fact] + public void A_single_expected_child_element_with_the_specified_xml_name_should_be_accepted() + { + // Arrange + var element = XElement.Parse( + @" + + "); + + // Act / Assert + element.Should().HaveSingleElement(XNamespace.None + "child"); + } + + [Fact] + public void Chaining_which_after_asserting_on_singularity_passes() + { + // Arrange + var element = XElement.Parse( + @" + + "); + + // Act / Assert + element.Should().HaveSingleElement("child").Which.Should().HaveAttribute("foo", "bar"); + } + + [Fact] + public void Chaining_which_after_asserting_on_singularity_fails_if_element_is_not_single() + { + // Arrange + var element = XElement.Parse( + @" + + + "); + + // Act + Action act = () => element.Should().HaveSingleElement("child") + .Which.Should().HaveAttribute("foo", "bar"); + + // Assert + act.Should().Throw() + .WithMessage("Expected element to have 1 child element(s) \"child\", but found 2."); + } + + [Fact] + public void Multiple_child_elements_with_the_specified_name_should_fail_the_test() + { + // Arrange + var element = XElement.Parse( + @" + + + "); + + // Act + Action act = () => element.Should().HaveSingleElement("child", + "because we want to test the failure {0}", "message"); + + // Assert + act.Should().Throw().WithMessage( + "Expected element to have 1 child element(s) \"child\"*failure message*, but found 2."); + } + + [Fact] + public void Cannot_ensure_a_single_element_if_the_document_is_null() + { + // Arrange + XElement xElement = null; + + // Act + Action act = () => xElement.Should().HaveSingleElement("child"); + + // Assert + act.Should().Throw().WithMessage( + "Expected* to have an element with count of *, but the element itself is ."); + } + + #endregion } } From 2c501c61f0ae6a0ded56ee54e180a547194799d7 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Fri, 8 Apr 2022 06:22:25 +0200 Subject: [PATCH 30/46] Verify the API changes for `XElementAssertions` --- .../ApprovedApi/FluentAssertions/net47.verified.txt | 4 ++++ .../ApprovedApi/FluentAssertions/net6.0.verified.txt | 4 ++++ .../ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt | 4 ++++ .../ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt | 4 ++++ .../ApprovedApi/FluentAssertions/netstandard2.0.verified.txt | 4 ++++ .../ApprovedApi/FluentAssertions/netstandard2.1.verified.txt | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt index 58a8037a6d..dce2bde31b 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt @@ -2698,6 +2698,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt index 58fd16b36a..66b05571a7 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt @@ -2818,6 +2818,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt index 709a3e8cd4..2fa78f5c56 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt @@ -2700,6 +2700,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt index 6d9f95993a..89e5657171 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt @@ -2700,6 +2700,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt index 4fecc024e4..0e6dc7fce7 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt @@ -2650,6 +2650,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt index 29952cba4e..7528828cde 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt @@ -2700,6 +2700,10 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } From 13443ee233d7f7a2336228d0477aa87c6548a1b0 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 06:21:11 +0200 Subject: [PATCH 31/46] Remove `HaveSingleElement` because it is redundant and less fluent --- .../Xml/XDocumentAssertions.cs | 38 - .../Xml/XElementAssertions.cs | 38 - .../FluentAssertions/net47.verified.txt | 2738 ---------------- .../FluentAssertions/net6.0.verified.txt | 2858 ----------------- .../netcoreapp2.1.verified.txt | 2740 ---------------- .../netcoreapp3.0.verified.txt | 2740 ---------------- .../netstandard2.0.verified.txt | 2690 ---------------- .../netstandard2.1.verified.txt | 2740 ---------------- .../Xml/XDocumentAssertionSpecs.cs | 95 - .../Xml/XElementAssertionSpecs.cs | 95 - 10 files changed, 16772 deletions(-) delete mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt delete mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt delete mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt delete mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt delete mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt delete mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index 41e46f3d35..4116aeee32 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -265,44 +265,6 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected return new AndWhichConstraint(this, xElement); } - /// - /// Asserts that the element of the current has a single - /// child element with the specified name. - /// - /// - /// The full name of the expected child element of the current document's element. - /// - /// - /// A formatted phrase as is supported by explaining why the assertion - /// is needed. If the phrase does not start with the word because, it is prepended automatically. - /// - /// - /// Zero or more objects to format using the placeholders in . - /// - public AndWhichConstraint HaveSingleElement(XName expected, string because = "", params object[] becauseArgs) - { - return HaveElement(expected, Exactly.Once(), because, becauseArgs); - } - - /// - /// Asserts that the element of the current has a single - /// child element with the specified name. - /// - /// - /// The full name of the expected child element of the current document's element. - /// - /// - /// A formatted phrase as is supported by explaining why the assertion - /// is needed. If the phrase does not start with the word because, it is prepended automatically. - /// - /// - /// Zero or more objects to format using the placeholders in . - /// - public AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) - { - return HaveElement(XNamespace.None + expected, Exactly.Once(), because, becauseArgs); - } - /// /// Asserts that the element of the current has the specified occurrence of /// child elements with the specified name. diff --git a/Src/FluentAssertions/Xml/XElementAssertions.cs b/Src/FluentAssertions/Xml/XElementAssertions.cs index 2dd871607c..d7f4b79f23 100644 --- a/Src/FluentAssertions/Xml/XElementAssertions.cs +++ b/Src/FluentAssertions/Xml/XElementAssertions.cs @@ -290,44 +290,6 @@ public AndConstraint HaveValue(string expected, string becau return new AndWhichConstraint(this, xElement); } - /// - /// Asserts that the of the current has a single - /// child element with the specified name. - /// - /// - /// The full name of the expected child element of the current element's . - /// - /// - /// A formatted phrase as is supported by explaining why the assertion - /// is needed. If the phrase does not start with the word because, it is prepended automatically. - /// - /// - /// Zero or more objects to format using the placeholders in . - /// - public AndWhichConstraint HaveSingleElement(XName expected, string because = "", params object[] becauseArgs) - { - return HaveElement(expected, Exactly.Once(), because, becauseArgs); - } - - /// - /// Asserts that the of the current has a single - /// child element with the specified name. - /// - /// - /// The full name of the expected child element of the current element's . - /// - /// - /// A formatted phrase as is supported by explaining why the assertion - /// is needed. If the phrase does not start with the word because, it is prepended automatically. - /// - /// - /// Zero or more objects to format using the placeholders in . - /// - public AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) - { - return HaveElement(XNamespace.None + expected, Exactly.Once(), because, becauseArgs); - } - /// /// Asserts that the of the current has the specified occurrence of /// child elements with the specified name. diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt deleted file mode 100644 index dce2bde31b..0000000000 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt +++ /dev/null @@ -1,2738 +0,0 @@ -[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7", FrameworkDisplayName=".NET Framework 4.7")] -namespace FluentAssertions -{ - public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions - { - public AggregateExceptionExtractor() { } - public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception { } - } - public class AndConstraint - { - public AndConstraint(T parentConstraint) { } - public T And { get; } - } - public class AndWhichConstraint : FluentAssertions.AndConstraint - { - public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } - public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } - public TMatchedElement Subject { get; } - public TMatchedElement Which { get; } - } - public static class AssertionExtensions - { - public static TTo As(this object subject) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Action Enumerating(this System.Func enumerable) { } - public static System.Action Enumerating(this System.Func> enumerable) { } - public static System.Action Enumerating(this T subject, System.Func> enumerable) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static System.Action Invoking(this T subject, System.Action action) { } - public static System.Func Invoking(this T subject, System.Func action) { } - public static FluentAssertions.Events.IMonitor Monitor(this T eventSource, System.Func utcNow = null) { } - public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } - public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } - public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } - public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } - public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } - public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } - public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } - public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } - public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } - public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } - public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } - public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } - public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } - public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } - public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } - public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } - public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } - public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } - public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } - public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } - public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } - public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } - public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } - public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } - public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } - public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } - public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } - public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) - where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.GuidAssertions _) - where TAssertions : FluentAssertions.Primitives.GuidAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } - public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } - public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } - public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } - public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Numeric.NumericAssertions _) - where TSubject : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.EnumAssertions _) - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } - public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) - where TCollection : System.Collections.Generic.IEnumerable> { } - } - public static class AssertionOptions - { - public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } - public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } - public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } - } - public static class AsyncAssertionsExtensions - { - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - } - public static class AtLeast - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class AtMost - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class CallerIdentifier - { - public static System.Action Logger { get; set; } - public static string DetermineCallerIdentity() { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class CustomAssertionAttribute : System.Attribute - { - public CustomAssertionAttribute() { } - } - public static class DataColumnCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataRowAssertionExtensions - { - public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) - where TDataRow : System.Data.DataRow { } - } - public static class DataRowCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataSetAssertionExtensions - { - public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) - where TDataSet : System.Data.DataSet { } - } - public static class DataTableAssertionExtensions - { - public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) - where TDataTable : System.Data.DataTable { } - } - public static class DataTableCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class EnumAssertionsExtensions - { - public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) - where TEnum : struct, System.Enum { } - public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) - where TEnum : struct, System.Enum { } - } - public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public EquivalencyPlan() { } - public void Add() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void AddAfter() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Clear() { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public void Insert() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void InsertBefore() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Remove() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } - public void Reset() { } - } - public static class EventRaisingExtensions - { - public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, System.Linq.Expressions.Expression> predicate) { } - public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, params System.Linq.Expressions.Expression>[] predicates) { } - public static FluentAssertions.Events.IEventRecording WithSender(this FluentAssertions.Events.IEventRecording eventRecording, object expectedSender) { } - } - public static class Exactly - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class ExceptionAssertionsExtensions - { - public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - } - public static class FluentActions - { - public static System.Func Awaiting(System.Func action) { } - public static System.Func> Awaiting(System.Func> func) { } - public static System.Action Enumerating(System.Func enumerable) { } - public static System.Action Enumerating(System.Func> enumerable) { } - public static System.Action Invoking(System.Action action) { } - public static System.Func Invoking(System.Func func) { } - } - public static class LessThan - { - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class MoreThan - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class NumericAssertionsExtensions - { - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - } - public static class ObjectAssertionsExtensions - { - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - } - public abstract class OccurrenceConstraint - { - protected OccurrenceConstraint(int expectedCount) { } - } - public static class TypeEnumerableExtensions - { - public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } - public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } - } - public static class TypeExtensions - { - public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } - } - public static class XmlAssertionExtensions - { - public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } - public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } - } -} -namespace FluentAssertions.Collections -{ - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> - { - public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public GenericCollectionAssertions(TCollection actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions - { - public GenericCollectionAssertions(TCollection actualValue) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } - public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(params T[] elements) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } - public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where TKey : class { } - public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } - public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } - public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } - public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } - public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } - public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } - public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - { - public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public StringCollectionAssertions(TCollection actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.StringCollectionAssertions - { - public StringCollectionAssertions(TCollection actualValue) { } - public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } - public FluentAssertions.AndConstraint Equal(params string[] expected) { } - public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> - { - public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - } - public class WhoseValueConstraint : FluentAssertions.AndConstraint - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } - public TValue WhoseValue { get; } - } -} -namespace FluentAssertions.Common -{ - public enum CSharpAccessModifier - { - Public = 0, - Private = 1, - Protected = 2, - Internal = 3, - ProtectedInternal = 4, - InvalidForCSharp = 5, - PrivateProtected = 6, - } - public class Configuration - { - public Configuration(FluentAssertions.Common.IConfigurationStore store) { } - public string TestFrameworkName { get; set; } - public string ValueFormatterAssembly { get; set; } - public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } - public static FluentAssertions.Common.Configuration Current { get; } - } - public static class DateTimeExtensions - { - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } - } - public interface IClock - { - void Delay(System.TimeSpan timeToDelay); - System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); - FluentAssertions.Common.ITimer StartTimer(); - } - public interface IConfigurationStore - { - string GetSetting(string name); - } - public interface IReflector - { - System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); - } - public interface ITimer : System.IDisposable - { - System.TimeSpan Elapsed { get; } - } - public static class Services - { - public static FluentAssertions.Common.Configuration Configuration { get; } - public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } - public static FluentAssertions.Common.IReflector Reflector { get; set; } - public static System.Action ThrowException { get; set; } - public static void ResetToDefaults() { } - } - public delegate FluentAssertions.Common.ITimer StartTimer(); - public enum ValueFormatterDetectionMode - { - Disabled = 0, - Specific = 1, - Scan = 2, - } -} -namespace FluentAssertions.Data -{ - public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public DataColumnAssertions(System.Data.DataColumn dataColumn) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataRow : System.Data.DataRow - { - public DataRowAssertions(TDataRow dataRow) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - } - public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataSet : System.Data.DataSet - { - public DataSetAssertions(TDataSet dataSet) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } - public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } - } - public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataTable : System.Data.DataTable - { - public DataTableAssertions(TDataTable dataTable) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } - } - public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - { - FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); - } - public enum RowMatchMode - { - Index = 0, - PrimaryKey = 1, - } -} -namespace FluentAssertions.Equivalency -{ - public class Comparands - { - public Comparands() { } - public Comparands(object subject, object expectation, System.Type compileTimeType) { } - public System.Type CompileTimeType { get; set; } - public object Expectation { get; set; } - public System.Type RuntimeType { get; } - public object Subject { get; set; } - public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public override string ToString() { } - } - public class ConversionSelector - { - public ConversionSelector() { } - public FluentAssertions.Equivalency.ConversionSelector Clone() { } - public void Exclude(System.Linq.Expressions.Expression> predicate) { } - public void Include(System.Linq.Expressions.Expression> predicate) { } - public void IncludeAll() { } - public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } - public override string ToString() { } - } - public enum CyclicReferenceHandling - { - Ignore = 0, - ThrowException = 1, - } - public enum EnumEquivalencyHandling - { - ByValue = 0, - ByName = 1, - } - public enum EqualityStrategy - { - Equals = 0, - Members = 1, - ForceEquals = 2, - ForceMembers = 3, - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - public EquivalencyAssertionOptions() { } - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> - { - public EquivalencyAssertionOptions() { } - public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } - } - public enum EquivalencyResult - { - ContinueWithNext = 0, - AssertionCompleted = 1, - } - public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - protected EquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext - { - public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.INode CurrentNode { get; } - public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - public FluentAssertions.Execution.Reason Reason { get; set; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } - public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } - public bool IsCyclicReference(object expectation) { } - public override string ToString() { } - } - public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator - { - public EquivalencyValidator() { } - public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } - public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } - } - public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; set; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public delegate string GetSubjectId(); - public interface IAssertionContext - { - string Because { get; set; } - object[] BecauseArgs { get; set; } - TSubject Expectation { get; } - FluentAssertions.Equivalency.INode SelectedNode { get; } - TSubject Subject { get; } - } - public interface IEquivalencyAssertionOptions - { - bool AllowInfiniteRecursion { get; } - bool CompareRecordsByValue { get; } - FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } - FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } - bool ExcludeNonBrowsableOnExpectation { get; } - bool IgnoreNonBrowsableOnSubject { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - bool IsRecursive { get; } - System.Collections.Generic.IEnumerable MatchingRules { get; } - FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - System.Collections.Generic.IEnumerable SelectionRules { get; } - FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - bool UseRuntimeTyping { get; } - System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } - FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); - } - public interface IEquivalencyStep - { - FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public interface IEquivalencyValidationContext - { - FluentAssertions.Equivalency.INode CurrentNode { get; } - FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - FluentAssertions.Execution.Reason Reason { get; } - FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); - FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); - bool IsCyclicReference(object expectation); - } - public interface IEquivalencyValidator - { - void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); - } - public interface IMember : FluentAssertions.Equivalency.INode - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - bool IsBrowsable { get; } - System.Type ReflectedType { get; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - object GetValue(object obj); - } - public interface IMemberInfo - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - string Name { get; } - string Path { get; set; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - System.Type Type { get; } - } - public interface IMemberMatchingRule - { - FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); - } - public interface IMemberSelectionRule - { - bool IncludesMembers { get; } - System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); - } - public interface INode - { - int Depth { get; } - string Description { get; } - FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } - bool IsRoot { get; } - string Name { get; set; } - string Path { get; } - string PathAndName { get; } - bool RootIsCollection { get; } - System.Type Type { get; } - } - public interface IObjectInfo - { - System.Type CompileTimeType { get; } - string Path { get; set; } - System.Type RuntimeType { get; } - System.Type Type { get; } - } - public interface IOrderingRule - { - FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); - } - public static class MemberFactory - { - public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } - } - public class MemberSelectionContext - { - public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - public System.Type Type { get; } - } - [System.Flags] - public enum MemberVisibility - { - None = 0, - Internal = 1, - Public = 2, - } - public class Node : FluentAssertions.Equivalency.INode - { - public Node() { } - public int Depth { get; } - public virtual string Description { get; } - public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } - public bool IsRoot { get; } - public string Name { get; set; } - public string Path { get; set; } - public string PathAndName { get; } - public bool RootIsCollection { get; set; } - public System.Type Type { get; set; } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public override string ToString() { } - public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } - public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } - public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } - } - public enum OrderStrictness - { - Strict = 0, - NotStrict = 1, - Irrelevant = 2, - } - public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public OrderingRuleCollection() { } - public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } - public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } - } - public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public bool CompareRecordsByValue { get; } - public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] - protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf AllowingInfiniteRecursion() { } - public TSelf ComparingByMembers(System.Type type) { } - public TSelf ComparingByMembers() { } - public TSelf ComparingByValue(System.Type type) { } - public TSelf ComparingByValue() { } - public TSelf ComparingEnumsByName() { } - public TSelf ComparingEnumsByValue() { } - public TSelf ComparingRecordsByMembers() { } - public TSelf ComparingRecordsByValue() { } - public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } - public TSelf ExcludingFields() { } - public TSelf ExcludingMissingMembers() { } - public TSelf ExcludingNestedObjects() { } - public TSelf ExcludingNonBrowsableMembers() { } - public TSelf ExcludingProperties() { } - public TSelf IgnoringCyclicReferences() { } - public TSelf IgnoringNonBrowsableMembersOnSubject() { } - public TSelf Including(System.Linq.Expressions.Expression> predicate) { } - public TSelf IncludingAllDeclaredProperties() { } - public TSelf IncludingAllRuntimeProperties() { } - public TSelf IncludingFields() { } - public TSelf IncludingInternalFields() { } - public TSelf IncludingInternalProperties() { } - public TSelf IncludingNestedObjects() { } - public TSelf IncludingProperties() { } - public TSelf RespectingDeclaredTypes() { } - public TSelf RespectingRuntimeTypes() { } - public TSelf ThrowingOnMissingMembers() { } - public override string ToString() { } - public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } - public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } - public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } - public TSelf Using() - where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } - public TSelf WithAutoConversion() { } - public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithStrictOrdering() { } - public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } - public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public void WithoutMatchingRules() { } - public void WithoutSelectionRules() { } - public TSelf WithoutStrictOrdering() { } - public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public class Restriction - { - public Restriction(TSelf options, System.Action> action) { } - public TSelf When(System.Linq.Expressions.Expression> predicate) { } - public TSelf WhenTypeIs() - where TMemberType : TMember { } - } - } - public static class SubjectInfoExtensions - { - public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - } -} -namespace FluentAssertions.Equivalency.Steps -{ - public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AutoConversionStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataColumnEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRelationEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataSetEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataTableEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DictionaryEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumEqualityStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericDictionaryEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericEnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ReferenceEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public RunAllUserStepsEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public SimpleEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StringEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StructuralEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ValueTypeEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XAttributeEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XDocumentEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XElementEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } -} -namespace FluentAssertions.Equivalency.Tracing -{ - public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); - public interface ITraceWriter - { - System.IDisposable AddBlock(string trace); - void AddSingle(string trace); - string ToString(); - } - public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter - { - public StringBuilderTraceWriter() { } - public System.IDisposable AddBlock(string trace) { } - public void AddSingle(string trace) { } - public override string ToString() { } - } - public class Tracer - { - public override string ToString() { } - public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - } -} -namespace FluentAssertions.Events -{ - public class EventAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - { - protected EventAssertions(FluentAssertions.Events.IMonitor monitor) { } - protected override string Identifier { get; } - public void NotRaise(string eventName, string because = "", params object[] becauseArgs) { } - public void NotRaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Events.IEventRecording Raise(string eventName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Events.IEventRecording RaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - } - public class EventMetadata - { - public EventMetadata(string eventName, System.Type handlerType) { } - public string EventName { get; } - public System.Type HandlerType { get; } - } - public interface IEventRecording : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - System.Type EventHandlerType { get; } - string EventName { get; } - object EventObject { get; } - } - public interface IMonitor : System.IDisposable - { - FluentAssertions.Events.EventMetadata[] MonitoredEvents { get; } - FluentAssertions.Events.OccurredEvent[] OccurredEvents { get; } - T Subject { get; } - void Clear(); - FluentAssertions.Events.IEventRecording GetRecordingFor(string eventName); - FluentAssertions.Events.EventAssertions Should(); - } - public class OccurredEvent - { - public OccurredEvent() { } - public string EventName { get; set; } - public object[] Parameters { get; set; } - public int Sequence { get; set; } - public System.DateTime TimestampUtc { get; set; } - } -} -namespace FluentAssertions.Execution -{ - [System.Serializable] - public class AssertionFailedException : System.Exception - { - public AssertionFailedException(string message) { } - protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public AssertionScope() { } - public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } - public AssertionScope(System.Lazy context) { } - public AssertionScope(string context) { } - public string CallerIdentity { get; } - public System.Lazy Context { get; set; } - public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } - public static FluentAssertions.Execution.AssertionScope Current { get; } - public void AddNonReportable(string key, object value) { } - public void AddPreFormattedFailure(string formattedFailureMessage) { } - public void AddReportable(string key, System.Func valueFunc) { } - public void AddReportable(string key, string value) { } - public void AppendTracing(string tracingBlock) { } - public void AssumeSingleCaller() { } - public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } - public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } - public T Get(string key) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public bool HasFailures() { } - public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } - } - public class Continuation - { - public FluentAssertions.Execution.IAssertionScope Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } - } - public class ContinuationOfGiven - { - public FluentAssertions.Execution.GivenSelector Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } - } - public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } - } - public static class Execute - { - public static FluentAssertions.Execution.AssertionScope Assertion { get; } - } - public class FailReason - { - public FailReason(string message, params object[] args) { } - public object[] Args { get; } - public string Message { get; } - } - public class GivenSelector - { - public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - } - public interface IAssertionScope : System.IDisposable - { - FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); - FluentAssertions.Execution.Continuation ClearExpectation(); - string[] Discard(); - FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); - FluentAssertions.Execution.Continuation FailWith(string message); - FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); - FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); - FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); - FluentAssertions.Execution.GivenSelector Given(System.Func selector); - FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); - FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); - } - public interface IAssertionStrategy - { - System.Collections.Generic.IEnumerable FailureMessages { get; } - System.Collections.Generic.IEnumerable DiscardFailures(); - void HandleFailure(string message); - void ThrowIfAny(System.Collections.Generic.IDictionary context); - } - public interface ICloneable2 - { - object Clone(); - } - public class Reason - { - public Reason(string formattedMessage, object[] arguments) { } - public object[] Arguments { get; set; } - public string FormattedMessage { get; set; } - } -} -namespace FluentAssertions.Extensions -{ - public static class FluentDateTimeExtensions - { - public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } - public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } - public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } - public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } - public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime April(this int day, int year) { } - public static System.DateTime AsLocal(this System.DateTime dateTime) { } - public static System.DateTime AsUtc(this System.DateTime dateTime) { } - public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } - public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTime August(this int day, int year) { } - public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime December(this int day, int year) { } - public static System.DateTime February(this int day, int year) { } - public static System.DateTime January(this int day, int year) { } - public static System.DateTime July(this int day, int year) { } - public static System.DateTime June(this int day, int year) { } - public static System.DateTime March(this int day, int year) { } - public static System.DateTime May(this int day, int year) { } - public static int Microsecond(this System.DateTime self) { } - public static int Microsecond(this System.DateTimeOffset self) { } - public static int Nanosecond(this System.DateTime self) { } - public static int Nanosecond(this System.DateTimeOffset self) { } - public static System.DateTime November(this int day, int year) { } - public static System.DateTime October(this int day, int year) { } - public static System.DateTime September(this int day, int year) { } - public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } - } - public static class FluentTimeSpanExtensions - { - public const long TicksPerMicrosecond = 10; - public const double TicksPerNanosecond = 0.01D; - public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } - public static System.TimeSpan Days(this double days) { } - public static System.TimeSpan Days(this int days) { } - public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } - public static System.TimeSpan Hours(this double hours) { } - public static System.TimeSpan Hours(this int hours) { } - public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } - public static int Microseconds(this System.TimeSpan self) { } - public static System.TimeSpan Microseconds(this int microseconds) { } - public static System.TimeSpan Microseconds(this long microseconds) { } - public static System.TimeSpan Milliseconds(this double milliseconds) { } - public static System.TimeSpan Milliseconds(this int milliseconds) { } - public static System.TimeSpan Minutes(this double minutes) { } - public static System.TimeSpan Minutes(this int minutes) { } - public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } - public static int Nanoseconds(this System.TimeSpan self) { } - public static System.TimeSpan Nanoseconds(this int nanoseconds) { } - public static System.TimeSpan Nanoseconds(this long nanoseconds) { } - public static System.TimeSpan Seconds(this double seconds) { } - public static System.TimeSpan Seconds(this int seconds) { } - public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } - public static System.TimeSpan Ticks(this int ticks) { } - public static System.TimeSpan Ticks(this long ticks) { } - public static double TotalMicroseconds(this System.TimeSpan self) { } - public static double TotalNanoseconds(this System.TimeSpan self) { } - } -} -namespace FluentAssertions.Formatting -{ - public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AggregateExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AttributeBasedFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DateTimeOffsetValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DecimalValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DefaultValueFormatter() { } - protected virtual int SpacesPerIndentionLevel { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } - protected virtual string TypeDisplayName(System.Type type) { } - } - public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DictionaryValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DoubleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumValueFormatter() { } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumerableValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); - public class FormattedObjectGraph - { - public FormattedObjectGraph(int maxLines) { } - public int LineCount { get; } - public static int SpacesPerIndentation { get; } - public void AddFragment(string fragment) { } - public void AddFragmentOnNewLine(string fragment) { } - public void AddLine(string line) { } - public override string ToString() { } - public System.IDisposable WithIndentation() { } - } - public static class Formatter - { - public static System.Collections.Generic.IEnumerable Formatters { get; } - public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } - } - public class FormattingContext - { - public FormattingContext() { } - public bool UseLineBreaks { get; set; } - } - public class FormattingOptions - { - public FormattingOptions() { } - public int MaxDepth { get; set; } - public int MaxLines { get; set; } - public bool UseLineBreaks { get; set; } - } - public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public GuidValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public interface IValueFormatter - { - bool CanHandle(object value); - void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); - } - public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class MaxLinesExceededException : System.Exception - { - public MaxLinesExceededException() { } - public MaxLinesExceededException(string message) { } - public MaxLinesExceededException(string message, System.Exception innerException) { } - } - public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter - { - public MultidimensionalArrayFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public NullValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PredicateLambdaExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PropertyInfoFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SingleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public StringValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TaskFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TimeSpanValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class ValueFormatterAttribute : System.Attribute - { - public ValueFormatterAttribute() { } - } - public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XAttributeValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XDocumentValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XElementValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlReaderValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} -namespace FluentAssertions.Numeric -{ - public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> - { - public ComparableTypeAssertions(System.IComparable value) { } - } - public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> - where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions - { - public ComparableTypeAssertions(System.IComparable value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> - where T : struct, System.IComparable - { - public NullableNumericAssertions(T? value) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions - { - public NullableNumericAssertions(T? value) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> - where T : struct, System.IComparable - { - public NumericAssertions(T value) { } - } - public class NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions - { - public NumericAssertions(T value) { } - public T? Subject { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Primitives -{ - public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - } - public class BooleanAssertions - where TAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - public bool? Subject { get; } - public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - } - public class DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - public System.DateTime? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - } - public class DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - public System.DateTimeOffset? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class DateTimeRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> - where TEnum : struct, System.Enum - { - public EnumAssertions(TEnum subject) { } - } - public class EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions - { - public EnumAssertions(TEnum subject) { } - public TEnum? Subject { get; } - public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } - } - public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - } - public class GuidAssertions - where TAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - public System.Guid? Subject { get; } - public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions - where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> - where TEnum : struct, System.Enum - { - public NullableEnumAssertions(TEnum? subject) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions - { - public NullableEnumAssertions(TEnum? subject) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions - where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(object value) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(TSubject value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public abstract class ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - protected ReferenceTypeAssertions(TSubject subject) { } - protected abstract string Identifier { get; } - public TSubject Subject { get; } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where T : TSubject { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } - } - public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - public System.TimeSpan? Subject { get; } - public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - } - public class StringAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - } - public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAll(params string[] values) { } - public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAny(params string[] values) { } - public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - } - public enum TimeSpanCondition - { - MoreThan = 0, - AtLeast = 1, - Exactly = 2, - Within = 3, - LessThan = 4, - } -} -namespace FluentAssertions.Reflection -{ - public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public AssemblyAssertions(System.Reflection.Assembly assembly) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Specialized -{ - public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions - { - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - } - public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> - where TTask : System.Threading.Tasks.Task - where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - { - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertions - { - protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } - protected abstract void InvokeSubject(); - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> - where TException : System.Exception - { - public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } - public TException And { get; } - protected override string Identifier { get; } - public TException Which { get; } - public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class ExecutionTime - { - public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } - public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - } - public class ExecutionTimeAssertions - { - public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> - { - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - } - public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> - { - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } - } - public interface IExtractExceptions - { - System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception; - } - public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime - { - public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } - } - public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - } - public class TaskCompletionSourceAssertions - { - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Streams -{ - public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - } - public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions - where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - protected override string Identifier { get; } - } - public class StreamAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(System.IO.Stream stream) { } - } - public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.IO.Stream - where TAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(TSubject stream) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Types -{ - public static class AllTypes - { - public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } - } - public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } - protected override string Identifier { get; } - } - public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Reflection.MemberInfo - where TAssertions : FluentAssertions.Types.MemberInfoAssertions - { - protected MemberInfoAssertions(TSubject subject) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - } - public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions - where TSubject : System.Reflection.MethodBase - where TAssertions : FluentAssertions.Types.MethodBaseAssertions - { - protected MethodBaseAssertions(TSubject subject) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - } - public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } - } - public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } - public MethodInfoSelector(System.Type type) { } - public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } - public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } - public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } - public System.Reflection.MethodInfo[] ToArray() { } - } - public class MethodInfoSelectorAssertions - { - public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectMethods { get; } - public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions - { - public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } - public PropertyInfoSelector(System.Type type) { } - public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } - public FluentAssertions.Types.PropertyInfoSelector OfType() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public System.Reflection.PropertyInfo[] ToArray() { } - } - public class PropertyInfoSelectorAssertions - { - public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectProperties { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - } - public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public TypeAssertions(System.Type type) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) - where TInterface : class { } - } - public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public TypeSelector(System.Collections.Generic.IEnumerable types) { } - public TypeSelector(System.Type type) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ThatAreClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } - public FluentAssertions.Types.TypeSelector ThatImplement() { } - public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } - public System.Type[] ToArray() { } - public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } - public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } - } - public class TypeSelectorAssertions - { - public TypeSelectorAssertions(params System.Type[] types) { } - public System.Collections.Generic.IEnumerable Subject { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Xml -{ - public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } - } - public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XDocumentAssertions(System.Xml.Linq.XDocument document) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - } - public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XElementAssertions(System.Xml.Linq.XElement xElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } - } - public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Xml.XmlNode - where TAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(TSubject xmlNode) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlNodeFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} \ No newline at end of file diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt deleted file mode 100644 index 66b05571a7..0000000000 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt +++ /dev/null @@ -1,2858 +0,0 @@ -[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName="")] -namespace FluentAssertions -{ - public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions - { - public AggregateExceptionExtractor() { } - public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception { } - } - public class AndConstraint - { - public AndConstraint(T parentConstraint) { } - public T And { get; } - } - public class AndWhichConstraint : FluentAssertions.AndConstraint - { - public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } - public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } - public TMatchedElement Subject { get; } - public TMatchedElement Which { get; } - } - public static class AssertionExtensions - { - public static TTo As(this object subject) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Action Enumerating(this System.Func enumerable) { } - public static System.Action Enumerating(this System.Func> enumerable) { } - public static System.Action Enumerating(this T subject, System.Func> enumerable) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static System.Action Invoking(this T subject, System.Action action) { } - public static System.Func Invoking(this T subject, System.Func action) { } - public static FluentAssertions.Events.IMonitor Monitor(this T eventSource, System.Func utcNow = null) { } - public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } - public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } - public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } - public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } - public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } - public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } - public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } - public static FluentAssertions.Primitives.DateOnlyAssertions Should(this System.DateOnly actualValue) { } - public static FluentAssertions.Primitives.NullableDateOnlyAssertions Should(this System.DateOnly? actualValue) { } - public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } - public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } - public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } - public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } - public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } - public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } - public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } - public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } - public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } - public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } - public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } - public static FluentAssertions.Primitives.TimeOnlyAssertions Should(this System.TimeOnly actualValue) { } - public static FluentAssertions.Primitives.NullableTimeOnlyAssertions Should(this System.TimeOnly? actualValue) { } - public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } - public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } - public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } - public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } - public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } - public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } - public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } - public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } - public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } - public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) - where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateOnlyAssertions _) - where TAssertions : FluentAssertions.Primitives.DateOnlyAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.GuidAssertions _) - where TAssertions : FluentAssertions.Primitives.GuidAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.TimeOnlyAssertions _) - where TAssertions : FluentAssertions.Primitives.TimeOnlyAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } - public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } - public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } - public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } - public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Numeric.NumericAssertions _) - where TSubject : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.EnumAssertions _) - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } - public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) - where TCollection : System.Collections.Generic.IEnumerable> { } - } - public static class AssertionOptions - { - public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } - public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } - public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } - } - public static class AsyncAssertionsExtensions - { - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - } - public static class AtLeast - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class AtMost - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class CallerIdentifier - { - public static System.Action Logger { get; set; } - public static string DetermineCallerIdentity() { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class CustomAssertionAttribute : System.Attribute - { - public CustomAssertionAttribute() { } - } - public static class DataColumnCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataRowAssertionExtensions - { - public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) - where TDataRow : System.Data.DataRow { } - } - public static class DataRowCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataSetAssertionExtensions - { - public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) - where TDataSet : System.Data.DataSet { } - } - public static class DataTableAssertionExtensions - { - public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) - where TDataTable : System.Data.DataTable { } - } - public static class DataTableCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class EnumAssertionsExtensions - { - public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) - where TEnum : struct, System.Enum { } - public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) - where TEnum : struct, System.Enum { } - } - public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public EquivalencyPlan() { } - public void Add() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void AddAfter() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Clear() { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public void Insert() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void InsertBefore() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Remove() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } - public void Reset() { } - } - public static class EventRaisingExtensions - { - public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, System.Linq.Expressions.Expression> predicate) { } - public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, params System.Linq.Expressions.Expression>[] predicates) { } - public static FluentAssertions.Events.IEventRecording WithSender(this FluentAssertions.Events.IEventRecording eventRecording, object expectedSender) { } - } - public static class Exactly - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class ExceptionAssertionsExtensions - { - public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - } - public static class FluentActions - { - public static System.Func Awaiting(System.Func action) { } - public static System.Func> Awaiting(System.Func> func) { } - public static System.Action Enumerating(System.Func enumerable) { } - public static System.Action Enumerating(System.Func> enumerable) { } - public static System.Action Invoking(System.Action action) { } - public static System.Func Invoking(System.Func func) { } - } - public static class LessThan - { - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class MoreThan - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class NumericAssertionsExtensions - { - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - } - public static class ObjectAssertionsExtensions - { - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - } - public abstract class OccurrenceConstraint - { - protected OccurrenceConstraint(int expectedCount) { } - } - public static class TypeEnumerableExtensions - { - public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } - public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } - } - public static class TypeExtensions - { - public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } - } - public static class XmlAssertionExtensions - { - public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } - public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } - } -} -namespace FluentAssertions.Collections -{ - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> - { - public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public GenericCollectionAssertions(TCollection actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions - { - public GenericCollectionAssertions(TCollection actualValue) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } - public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(params T[] elements) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } - public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where TKey : class { } - public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } - public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } - public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } - public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } - public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } - public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } - public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - { - public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public StringCollectionAssertions(TCollection actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.StringCollectionAssertions - { - public StringCollectionAssertions(TCollection actualValue) { } - public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } - public FluentAssertions.AndConstraint Equal(params string[] expected) { } - public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> - { - public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - } - public class WhoseValueConstraint : FluentAssertions.AndConstraint - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } - public TValue WhoseValue { get; } - } -} -namespace FluentAssertions.Common -{ - public enum CSharpAccessModifier - { - Public = 0, - Private = 1, - Protected = 2, - Internal = 3, - ProtectedInternal = 4, - InvalidForCSharp = 5, - PrivateProtected = 6, - } - public class Configuration - { - public Configuration(FluentAssertions.Common.IConfigurationStore store) { } - public string TestFrameworkName { get; set; } - public string ValueFormatterAssembly { get; set; } - public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } - public static FluentAssertions.Common.Configuration Current { get; } - } - public static class DateTimeExtensions - { - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } - } - public interface IClock - { - void Delay(System.TimeSpan timeToDelay); - System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); - FluentAssertions.Common.ITimer StartTimer(); - } - public interface IConfigurationStore - { - string GetSetting(string name); - } - public interface IReflector - { - System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); - } - public interface ITimer : System.IDisposable - { - System.TimeSpan Elapsed { get; } - } - public static class Services - { - public static FluentAssertions.Common.Configuration Configuration { get; } - public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } - public static FluentAssertions.Common.IReflector Reflector { get; set; } - public static System.Action ThrowException { get; set; } - public static void ResetToDefaults() { } - } - public delegate FluentAssertions.Common.ITimer StartTimer(); - public enum ValueFormatterDetectionMode - { - Disabled = 0, - Specific = 1, - Scan = 2, - } -} -namespace FluentAssertions.Data -{ - public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public DataColumnAssertions(System.Data.DataColumn dataColumn) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataRow : System.Data.DataRow - { - public DataRowAssertions(TDataRow dataRow) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - } - public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataSet : System.Data.DataSet - { - public DataSetAssertions(TDataSet dataSet) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } - public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } - } - public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataTable : System.Data.DataTable - { - public DataTableAssertions(TDataTable dataTable) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } - } - public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - { - FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); - } - public enum RowMatchMode - { - Index = 0, - PrimaryKey = 1, - } -} -namespace FluentAssertions.Equivalency -{ - public class Comparands - { - public Comparands() { } - public Comparands(object subject, object expectation, System.Type compileTimeType) { } - public System.Type CompileTimeType { get; set; } - public object Expectation { get; set; } - public System.Type RuntimeType { get; } - public object Subject { get; set; } - public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public override string ToString() { } - } - public class ConversionSelector - { - public ConversionSelector() { } - public FluentAssertions.Equivalency.ConversionSelector Clone() { } - public void Exclude(System.Linq.Expressions.Expression> predicate) { } - public void Include(System.Linq.Expressions.Expression> predicate) { } - public void IncludeAll() { } - public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } - public override string ToString() { } - } - public enum CyclicReferenceHandling - { - Ignore = 0, - ThrowException = 1, - } - public enum EnumEquivalencyHandling - { - ByValue = 0, - ByName = 1, - } - public enum EqualityStrategy - { - Equals = 0, - Members = 1, - ForceEquals = 2, - ForceMembers = 3, - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - public EquivalencyAssertionOptions() { } - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> - { - public EquivalencyAssertionOptions() { } - public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } - } - public enum EquivalencyResult - { - ContinueWithNext = 0, - AssertionCompleted = 1, - } - public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - protected EquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext - { - public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.INode CurrentNode { get; } - public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - public FluentAssertions.Execution.Reason Reason { get; set; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } - public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } - public bool IsCyclicReference(object expectation) { } - public override string ToString() { } - } - public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator - { - public EquivalencyValidator() { } - public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } - public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } - } - public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; set; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public delegate string GetSubjectId(); - public interface IAssertionContext - { - string Because { get; set; } - object[] BecauseArgs { get; set; } - TSubject Expectation { get; } - FluentAssertions.Equivalency.INode SelectedNode { get; } - TSubject Subject { get; } - } - public interface IEquivalencyAssertionOptions - { - bool AllowInfiniteRecursion { get; } - bool CompareRecordsByValue { get; } - FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } - FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } - bool ExcludeNonBrowsableOnExpectation { get; } - bool IgnoreNonBrowsableOnSubject { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - bool IsRecursive { get; } - System.Collections.Generic.IEnumerable MatchingRules { get; } - FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - System.Collections.Generic.IEnumerable SelectionRules { get; } - FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - bool UseRuntimeTyping { get; } - System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } - FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); - } - public interface IEquivalencyStep - { - FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public interface IEquivalencyValidationContext - { - FluentAssertions.Equivalency.INode CurrentNode { get; } - FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - FluentAssertions.Execution.Reason Reason { get; } - FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); - FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); - bool IsCyclicReference(object expectation); - } - public interface IEquivalencyValidator - { - void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); - } - public interface IMember : FluentAssertions.Equivalency.INode - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - bool IsBrowsable { get; } - System.Type ReflectedType { get; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - object GetValue(object obj); - } - public interface IMemberInfo - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - string Name { get; } - string Path { get; set; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - System.Type Type { get; } - } - public interface IMemberMatchingRule - { - FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); - } - public interface IMemberSelectionRule - { - bool IncludesMembers { get; } - System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); - } - public interface INode - { - int Depth { get; } - string Description { get; } - FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } - bool IsRoot { get; } - string Name { get; set; } - string Path { get; } - string PathAndName { get; } - bool RootIsCollection { get; } - System.Type Type { get; } - } - public interface IObjectInfo - { - System.Type CompileTimeType { get; } - string Path { get; set; } - System.Type RuntimeType { get; } - System.Type Type { get; } - } - public interface IOrderingRule - { - FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); - } - public static class MemberFactory - { - public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } - } - public class MemberSelectionContext - { - public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - public System.Type Type { get; } - } - [System.Flags] - public enum MemberVisibility - { - None = 0, - Internal = 1, - Public = 2, - } - public class Node : FluentAssertions.Equivalency.INode - { - public Node() { } - public int Depth { get; } - public virtual string Description { get; } - public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } - public bool IsRoot { get; } - public string Name { get; set; } - public string Path { get; set; } - public string PathAndName { get; } - public bool RootIsCollection { get; set; } - public System.Type Type { get; set; } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public override string ToString() { } - public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } - public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } - public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } - } - public enum OrderStrictness - { - Strict = 0, - NotStrict = 1, - Irrelevant = 2, - } - public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public OrderingRuleCollection() { } - public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } - public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } - } - public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public bool CompareRecordsByValue { get; } - public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] - protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf AllowingInfiniteRecursion() { } - public TSelf ComparingByMembers(System.Type type) { } - public TSelf ComparingByMembers() { } - public TSelf ComparingByValue(System.Type type) { } - public TSelf ComparingByValue() { } - public TSelf ComparingEnumsByName() { } - public TSelf ComparingEnumsByValue() { } - public TSelf ComparingRecordsByMembers() { } - public TSelf ComparingRecordsByValue() { } - public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } - public TSelf ExcludingFields() { } - public TSelf ExcludingMissingMembers() { } - public TSelf ExcludingNestedObjects() { } - public TSelf ExcludingNonBrowsableMembers() { } - public TSelf ExcludingProperties() { } - public TSelf IgnoringCyclicReferences() { } - public TSelf IgnoringNonBrowsableMembersOnSubject() { } - public TSelf Including(System.Linq.Expressions.Expression> predicate) { } - public TSelf IncludingAllDeclaredProperties() { } - public TSelf IncludingAllRuntimeProperties() { } - public TSelf IncludingFields() { } - public TSelf IncludingInternalFields() { } - public TSelf IncludingInternalProperties() { } - public TSelf IncludingNestedObjects() { } - public TSelf IncludingProperties() { } - public TSelf RespectingDeclaredTypes() { } - public TSelf RespectingRuntimeTypes() { } - public TSelf ThrowingOnMissingMembers() { } - public override string ToString() { } - public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } - public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } - public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } - public TSelf Using() - where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } - public TSelf WithAutoConversion() { } - public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithStrictOrdering() { } - public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } - public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public void WithoutMatchingRules() { } - public void WithoutSelectionRules() { } - public TSelf WithoutStrictOrdering() { } - public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public class Restriction - { - public Restriction(TSelf options, System.Action> action) { } - public TSelf When(System.Linq.Expressions.Expression> predicate) { } - public TSelf WhenTypeIs() - where TMemberType : TMember { } - } - } - public static class SubjectInfoExtensions - { - public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - } -} -namespace FluentAssertions.Equivalency.Steps -{ - public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AutoConversionStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataColumnEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRelationEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataSetEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataTableEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DictionaryEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumEqualityStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericDictionaryEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericEnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ReferenceEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public RunAllUserStepsEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public SimpleEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StringEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StructuralEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ValueTypeEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XAttributeEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XDocumentEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XElementEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } -} -namespace FluentAssertions.Equivalency.Tracing -{ - public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); - public interface ITraceWriter - { - System.IDisposable AddBlock(string trace); - void AddSingle(string trace); - string ToString(); - } - public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter - { - public StringBuilderTraceWriter() { } - public System.IDisposable AddBlock(string trace) { } - public void AddSingle(string trace) { } - public override string ToString() { } - } - public class Tracer - { - public override string ToString() { } - public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - } -} -namespace FluentAssertions.Events -{ - public class EventAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - { - protected EventAssertions(FluentAssertions.Events.IMonitor monitor) { } - protected override string Identifier { get; } - public void NotRaise(string eventName, string because = "", params object[] becauseArgs) { } - public void NotRaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Events.IEventRecording Raise(string eventName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Events.IEventRecording RaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - } - public class EventMetadata - { - public EventMetadata(string eventName, System.Type handlerType) { } - public string EventName { get; } - public System.Type HandlerType { get; } - } - public interface IEventRecording : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - System.Type EventHandlerType { get; } - string EventName { get; } - object EventObject { get; } - } - public interface IMonitor : System.IDisposable - { - FluentAssertions.Events.EventMetadata[] MonitoredEvents { get; } - FluentAssertions.Events.OccurredEvent[] OccurredEvents { get; } - T Subject { get; } - void Clear(); - FluentAssertions.Events.IEventRecording GetRecordingFor(string eventName); - FluentAssertions.Events.EventAssertions Should(); - } - public class OccurredEvent - { - public OccurredEvent() { } - public string EventName { get; set; } - public object[] Parameters { get; set; } - public int Sequence { get; set; } - public System.DateTime TimestampUtc { get; set; } - } -} -namespace FluentAssertions.Execution -{ - [System.Serializable] - public class AssertionFailedException : System.Exception - { - public AssertionFailedException(string message) { } - protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public AssertionScope() { } - public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } - public AssertionScope(System.Lazy context) { } - public AssertionScope(string context) { } - public string CallerIdentity { get; } - public System.Lazy Context { get; set; } - public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } - public static FluentAssertions.Execution.AssertionScope Current { get; } - public void AddNonReportable(string key, object value) { } - public void AddPreFormattedFailure(string formattedFailureMessage) { } - public void AddReportable(string key, System.Func valueFunc) { } - public void AddReportable(string key, string value) { } - public void AppendTracing(string tracingBlock) { } - public void AssumeSingleCaller() { } - public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } - public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } - public T Get(string key) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public bool HasFailures() { } - public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } - } - public class Continuation - { - public FluentAssertions.Execution.IAssertionScope Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } - } - public class ContinuationOfGiven - { - public FluentAssertions.Execution.GivenSelector Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } - } - public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } - } - public static class Execute - { - public static FluentAssertions.Execution.AssertionScope Assertion { get; } - } - public class FailReason - { - public FailReason(string message, params object[] args) { } - public object[] Args { get; } - public string Message { get; } - } - public class GivenSelector - { - public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - } - public interface IAssertionScope : System.IDisposable - { - FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); - FluentAssertions.Execution.Continuation ClearExpectation(); - string[] Discard(); - FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); - FluentAssertions.Execution.Continuation FailWith(string message); - FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); - FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); - FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); - FluentAssertions.Execution.GivenSelector Given(System.Func selector); - FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); - FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); - } - public interface IAssertionStrategy - { - System.Collections.Generic.IEnumerable FailureMessages { get; } - System.Collections.Generic.IEnumerable DiscardFailures(); - void HandleFailure(string message); - void ThrowIfAny(System.Collections.Generic.IDictionary context); - } - public interface ICloneable2 - { - object Clone(); - } - public class Reason - { - public Reason(string formattedMessage, object[] arguments) { } - public object[] Arguments { get; set; } - public string FormattedMessage { get; set; } - } -} -namespace FluentAssertions.Extensions -{ - public static class FluentDateTimeExtensions - { - public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } - public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } - public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } - public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } - public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime April(this int day, int year) { } - public static System.DateTime AsLocal(this System.DateTime dateTime) { } - public static System.DateTime AsUtc(this System.DateTime dateTime) { } - public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } - public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTime August(this int day, int year) { } - public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime December(this int day, int year) { } - public static System.DateTime February(this int day, int year) { } - public static System.DateTime January(this int day, int year) { } - public static System.DateTime July(this int day, int year) { } - public static System.DateTime June(this int day, int year) { } - public static System.DateTime March(this int day, int year) { } - public static System.DateTime May(this int day, int year) { } - public static int Microsecond(this System.DateTime self) { } - public static int Microsecond(this System.DateTimeOffset self) { } - public static int Nanosecond(this System.DateTime self) { } - public static int Nanosecond(this System.DateTimeOffset self) { } - public static System.DateTime November(this int day, int year) { } - public static System.DateTime October(this int day, int year) { } - public static System.DateTime September(this int day, int year) { } - public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } - } - public static class FluentTimeSpanExtensions - { - public const long TicksPerMicrosecond = 10; - public const double TicksPerNanosecond = 0.01D; - public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } - public static System.TimeSpan Days(this double days) { } - public static System.TimeSpan Days(this int days) { } - public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } - public static System.TimeSpan Hours(this double hours) { } - public static System.TimeSpan Hours(this int hours) { } - public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } - public static int Microseconds(this System.TimeSpan self) { } - public static System.TimeSpan Microseconds(this int microseconds) { } - public static System.TimeSpan Microseconds(this long microseconds) { } - public static System.TimeSpan Milliseconds(this double milliseconds) { } - public static System.TimeSpan Milliseconds(this int milliseconds) { } - public static System.TimeSpan Minutes(this double minutes) { } - public static System.TimeSpan Minutes(this int minutes) { } - public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } - public static int Nanoseconds(this System.TimeSpan self) { } - public static System.TimeSpan Nanoseconds(this int nanoseconds) { } - public static System.TimeSpan Nanoseconds(this long nanoseconds) { } - public static System.TimeSpan Seconds(this double seconds) { } - public static System.TimeSpan Seconds(this int seconds) { } - public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } - public static System.TimeSpan Ticks(this int ticks) { } - public static System.TimeSpan Ticks(this long ticks) { } - public static double TotalMicroseconds(this System.TimeSpan self) { } - public static double TotalNanoseconds(this System.TimeSpan self) { } - } -} -namespace FluentAssertions.Formatting -{ - public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AggregateExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AttributeBasedFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DateOnlyValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DateOnlyValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DateTimeOffsetValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DecimalValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DefaultValueFormatter() { } - protected virtual int SpacesPerIndentionLevel { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } - protected virtual string TypeDisplayName(System.Type type) { } - } - public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DictionaryValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DoubleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumValueFormatter() { } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumerableValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); - public class FormattedObjectGraph - { - public FormattedObjectGraph(int maxLines) { } - public int LineCount { get; } - public static int SpacesPerIndentation { get; } - public void AddFragment(string fragment) { } - public void AddFragmentOnNewLine(string fragment) { } - public void AddLine(string line) { } - public override string ToString() { } - public System.IDisposable WithIndentation() { } - } - public static class Formatter - { - public static System.Collections.Generic.IEnumerable Formatters { get; } - public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } - } - public class FormattingContext - { - public FormattingContext() { } - public bool UseLineBreaks { get; set; } - } - public class FormattingOptions - { - public FormattingOptions() { } - public int MaxDepth { get; set; } - public int MaxLines { get; set; } - public bool UseLineBreaks { get; set; } - } - public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public GuidValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public interface IValueFormatter - { - bool CanHandle(object value); - void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); - } - public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class MaxLinesExceededException : System.Exception - { - public MaxLinesExceededException() { } - public MaxLinesExceededException(string message) { } - public MaxLinesExceededException(string message, System.Exception innerException) { } - } - public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter - { - public MultidimensionalArrayFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public NullValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PredicateLambdaExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PropertyInfoFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SingleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public StringValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TaskFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TimeOnlyValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TimeOnlyValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TimeSpanValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class ValueFormatterAttribute : System.Attribute - { - public ValueFormatterAttribute() { } - } - public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XAttributeValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XDocumentValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XElementValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlReaderValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} -namespace FluentAssertions.Numeric -{ - public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> - { - public ComparableTypeAssertions(System.IComparable value) { } - } - public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> - where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions - { - public ComparableTypeAssertions(System.IComparable value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> - where T : struct, System.IComparable - { - public NullableNumericAssertions(T? value) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions - { - public NullableNumericAssertions(T? value) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> - where T : struct, System.IComparable - { - public NumericAssertions(T value) { } - } - public class NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions - { - public NumericAssertions(T value) { } - public T? Subject { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Primitives -{ - public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - } - public class BooleanAssertions - where TAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - public bool? Subject { get; } - public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateOnlyAssertions : FluentAssertions.Primitives.DateOnlyAssertions - { - public DateOnlyAssertions(System.DateOnly? value) { } - } - public class DateOnlyAssertions - where TAssertions : FluentAssertions.Primitives.DateOnlyAssertions - { - public DateOnlyAssertions(System.DateOnly? value) { } - public System.DateOnly? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateOnly expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateOnly? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateOnly expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeBefore(System.DateOnly expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateOnly expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateOnly expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateOnly[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateOnly unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateOnly? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateOnly unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateOnly unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateOnly unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateOnly unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - } - public class DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - public System.DateTime? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - } - public class DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - public System.DateTimeOffset? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class DateTimeRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> - where TEnum : struct, System.Enum - { - public EnumAssertions(TEnum subject) { } - } - public class EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions - { - public EnumAssertions(TEnum subject) { } - public TEnum? Subject { get; } - public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } - } - public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - } - public class GuidAssertions - where TAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - public System.Guid? Subject { get; } - public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions - where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateOnlyAssertions : FluentAssertions.Primitives.NullableDateOnlyAssertions - { - public NullableDateOnlyAssertions(System.DateOnly? value) { } - } - public class NullableDateOnlyAssertions : FluentAssertions.Primitives.DateOnlyAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateOnlyAssertions - { - public NullableDateOnlyAssertions(System.DateOnly? value) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> - where TEnum : struct, System.Enum - { - public NullableEnumAssertions(TEnum? subject) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions - { - public NullableEnumAssertions(TEnum? subject) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions - where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableTimeOnlyAssertions : FluentAssertions.Primitives.NullableTimeOnlyAssertions - { - public NullableTimeOnlyAssertions(System.TimeOnly? value) { } - } - public class NullableTimeOnlyAssertions : FluentAssertions.Primitives.TimeOnlyAssertions - where TAssertions : FluentAssertions.Primitives.NullableTimeOnlyAssertions - { - public NullableTimeOnlyAssertions(System.TimeOnly? value) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(object value) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(TSubject value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public abstract class ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - protected ReferenceTypeAssertions(TSubject subject) { } - protected abstract string Identifier { get; } - public TSubject Subject { get; } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where T : TSubject { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } - } - public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - public System.TimeSpan? Subject { get; } - public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - } - public class StringAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - } - public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAll(params string[] values) { } - public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAny(params string[] values) { } - public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - } - public class TimeOnlyAssertions : FluentAssertions.Primitives.TimeOnlyAssertions - { - public TimeOnlyAssertions(System.TimeOnly? value) { } - } - public class TimeOnlyAssertions - where TAssertions : FluentAssertions.Primitives.TimeOnlyAssertions - { - public TimeOnlyAssertions(System.TimeOnly? value) { } - public System.TimeOnly? Subject { get; } - public FluentAssertions.AndConstraint Be(System.TimeOnly expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.TimeOnly? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.TimeOnly expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeBefore(System.TimeOnly expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.TimeOnly expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.TimeOnly expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.TimeOnly[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveHours(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMilliseconds(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinutes(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSeconds(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.TimeOnly unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.TimeOnly? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.TimeOnly unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.TimeOnly unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.TimeOnly unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.TimeOnly unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHours(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMilliseconds(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinutes(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSeconds(int unexpected, string because = "", params object[] becauseArgs) { } - } - public enum TimeSpanCondition - { - MoreThan = 0, - AtLeast = 1, - Exactly = 2, - Within = 3, - LessThan = 4, - } -} -namespace FluentAssertions.Reflection -{ - public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public AssemblyAssertions(System.Reflection.Assembly assembly) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Specialized -{ - public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions - { - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - } - public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> - where TTask : System.Threading.Tasks.Task - where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - { - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertions - { - protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } - protected abstract void InvokeSubject(); - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> - where TException : System.Exception - { - public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } - public TException And { get; } - protected override string Identifier { get; } - public TException Which { get; } - public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class ExecutionTime - { - public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } - public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - } - public class ExecutionTimeAssertions - { - public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> - { - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - } - public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> - { - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } - } - public interface IExtractExceptions - { - System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception; - } - public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime - { - public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } - } - public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - } - public class TaskCompletionSourceAssertions - { - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Streams -{ - public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - } - public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions - where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class StreamAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(System.IO.Stream stream) { } - } - public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.IO.Stream - where TAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(TSubject stream) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Types -{ - public static class AllTypes - { - public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } - } - public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } - protected override string Identifier { get; } - } - public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Reflection.MemberInfo - where TAssertions : FluentAssertions.Types.MemberInfoAssertions - { - protected MemberInfoAssertions(TSubject subject) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - } - public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions - where TSubject : System.Reflection.MethodBase - where TAssertions : FluentAssertions.Types.MethodBaseAssertions - { - protected MethodBaseAssertions(TSubject subject) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - } - public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } - } - public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } - public MethodInfoSelector(System.Type type) { } - public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } - public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } - public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } - public System.Reflection.MethodInfo[] ToArray() { } - } - public class MethodInfoSelectorAssertions - { - public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectMethods { get; } - public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions - { - public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } - public PropertyInfoSelector(System.Type type) { } - public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } - public FluentAssertions.Types.PropertyInfoSelector OfType() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public System.Reflection.PropertyInfo[] ToArray() { } - } - public class PropertyInfoSelectorAssertions - { - public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectProperties { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - } - public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public TypeAssertions(System.Type type) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) - where TInterface : class { } - } - public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public TypeSelector(System.Collections.Generic.IEnumerable types) { } - public TypeSelector(System.Type type) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ThatAreClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } - public FluentAssertions.Types.TypeSelector ThatImplement() { } - public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } - public System.Type[] ToArray() { } - public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } - public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } - } - public class TypeSelectorAssertions - { - public TypeSelectorAssertions(params System.Type[] types) { } - public System.Collections.Generic.IEnumerable Subject { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Xml -{ - public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } - } - public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XDocumentAssertions(System.Xml.Linq.XDocument document) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - } - public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XElementAssertions(System.Xml.Linq.XElement xElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } - } - public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Xml.XmlNode - where TAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(TSubject xmlNode) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlNodeFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} \ No newline at end of file diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt deleted file mode 100644 index 2fa78f5c56..0000000000 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt +++ /dev/null @@ -1,2740 +0,0 @@ -[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v2.1", FrameworkDisplayName="")] -namespace FluentAssertions -{ - public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions - { - public AggregateExceptionExtractor() { } - public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception { } - } - public class AndConstraint - { - public AndConstraint(T parentConstraint) { } - public T And { get; } - } - public class AndWhichConstraint : FluentAssertions.AndConstraint - { - public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } - public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } - public TMatchedElement Subject { get; } - public TMatchedElement Which { get; } - } - public static class AssertionExtensions - { - public static TTo As(this object subject) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Action Enumerating(this System.Func enumerable) { } - public static System.Action Enumerating(this System.Func> enumerable) { } - public static System.Action Enumerating(this T subject, System.Func> enumerable) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static System.Action Invoking(this T subject, System.Action action) { } - public static System.Func Invoking(this T subject, System.Func action) { } - public static FluentAssertions.Events.IMonitor Monitor(this T eventSource, System.Func utcNow = null) { } - public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } - public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } - public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } - public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } - public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } - public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } - public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } - public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } - public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } - public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } - public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } - public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } - public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } - public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } - public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } - public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } - public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } - public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } - public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } - public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } - public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } - public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } - public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } - public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } - public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } - public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } - public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } - public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) - where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.GuidAssertions _) - where TAssertions : FluentAssertions.Primitives.GuidAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } - public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } - public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } - public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } - public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Numeric.NumericAssertions _) - where TSubject : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.EnumAssertions _) - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } - public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) - where TCollection : System.Collections.Generic.IEnumerable> { } - } - public static class AssertionOptions - { - public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } - public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } - public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } - } - public static class AsyncAssertionsExtensions - { - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - } - public static class AtLeast - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class AtMost - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class CallerIdentifier - { - public static System.Action Logger { get; set; } - public static string DetermineCallerIdentity() { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class CustomAssertionAttribute : System.Attribute - { - public CustomAssertionAttribute() { } - } - public static class DataColumnCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataRowAssertionExtensions - { - public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) - where TDataRow : System.Data.DataRow { } - } - public static class DataRowCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataSetAssertionExtensions - { - public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) - where TDataSet : System.Data.DataSet { } - } - public static class DataTableAssertionExtensions - { - public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) - where TDataTable : System.Data.DataTable { } - } - public static class DataTableCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class EnumAssertionsExtensions - { - public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) - where TEnum : struct, System.Enum { } - public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) - where TEnum : struct, System.Enum { } - } - public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public EquivalencyPlan() { } - public void Add() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void AddAfter() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Clear() { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public void Insert() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void InsertBefore() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Remove() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } - public void Reset() { } - } - public static class EventRaisingExtensions - { - public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, System.Linq.Expressions.Expression> predicate) { } - public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, params System.Linq.Expressions.Expression>[] predicates) { } - public static FluentAssertions.Events.IEventRecording WithSender(this FluentAssertions.Events.IEventRecording eventRecording, object expectedSender) { } - } - public static class Exactly - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class ExceptionAssertionsExtensions - { - public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - } - public static class FluentActions - { - public static System.Func Awaiting(System.Func action) { } - public static System.Func> Awaiting(System.Func> func) { } - public static System.Action Enumerating(System.Func enumerable) { } - public static System.Action Enumerating(System.Func> enumerable) { } - public static System.Action Invoking(System.Action action) { } - public static System.Func Invoking(System.Func func) { } - } - public static class LessThan - { - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class MoreThan - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class NumericAssertionsExtensions - { - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - } - public static class ObjectAssertionsExtensions - { - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - } - public abstract class OccurrenceConstraint - { - protected OccurrenceConstraint(int expectedCount) { } - } - public static class TypeEnumerableExtensions - { - public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } - public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } - } - public static class TypeExtensions - { - public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } - } - public static class XmlAssertionExtensions - { - public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } - public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } - } -} -namespace FluentAssertions.Collections -{ - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> - { - public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public GenericCollectionAssertions(TCollection actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions - { - public GenericCollectionAssertions(TCollection actualValue) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } - public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(params T[] elements) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } - public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where TKey : class { } - public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } - public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } - public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } - public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } - public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } - public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } - public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - { - public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public StringCollectionAssertions(TCollection actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.StringCollectionAssertions - { - public StringCollectionAssertions(TCollection actualValue) { } - public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } - public FluentAssertions.AndConstraint Equal(params string[] expected) { } - public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> - { - public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - } - public class WhoseValueConstraint : FluentAssertions.AndConstraint - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } - public TValue WhoseValue { get; } - } -} -namespace FluentAssertions.Common -{ - public enum CSharpAccessModifier - { - Public = 0, - Private = 1, - Protected = 2, - Internal = 3, - ProtectedInternal = 4, - InvalidForCSharp = 5, - PrivateProtected = 6, - } - public class Configuration - { - public Configuration(FluentAssertions.Common.IConfigurationStore store) { } - public string TestFrameworkName { get; set; } - public string ValueFormatterAssembly { get; set; } - public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } - public static FluentAssertions.Common.Configuration Current { get; } - } - public static class DateTimeExtensions - { - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } - } - public interface IClock - { - void Delay(System.TimeSpan timeToDelay); - System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); - FluentAssertions.Common.ITimer StartTimer(); - } - public interface IConfigurationStore - { - string GetSetting(string name); - } - public interface IReflector - { - System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); - } - public interface ITimer : System.IDisposable - { - System.TimeSpan Elapsed { get; } - } - public static class Services - { - public static FluentAssertions.Common.Configuration Configuration { get; } - public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } - public static FluentAssertions.Common.IReflector Reflector { get; set; } - public static System.Action ThrowException { get; set; } - public static void ResetToDefaults() { } - } - public delegate FluentAssertions.Common.ITimer StartTimer(); - public enum ValueFormatterDetectionMode - { - Disabled = 0, - Specific = 1, - Scan = 2, - } -} -namespace FluentAssertions.Data -{ - public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public DataColumnAssertions(System.Data.DataColumn dataColumn) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataRow : System.Data.DataRow - { - public DataRowAssertions(TDataRow dataRow) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - } - public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataSet : System.Data.DataSet - { - public DataSetAssertions(TDataSet dataSet) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } - public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } - } - public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataTable : System.Data.DataTable - { - public DataTableAssertions(TDataTable dataTable) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } - } - public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - { - FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); - } - public enum RowMatchMode - { - Index = 0, - PrimaryKey = 1, - } -} -namespace FluentAssertions.Equivalency -{ - public class Comparands - { - public Comparands() { } - public Comparands(object subject, object expectation, System.Type compileTimeType) { } - public System.Type CompileTimeType { get; set; } - public object Expectation { get; set; } - public System.Type RuntimeType { get; } - public object Subject { get; set; } - public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public override string ToString() { } - } - public class ConversionSelector - { - public ConversionSelector() { } - public FluentAssertions.Equivalency.ConversionSelector Clone() { } - public void Exclude(System.Linq.Expressions.Expression> predicate) { } - public void Include(System.Linq.Expressions.Expression> predicate) { } - public void IncludeAll() { } - public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } - public override string ToString() { } - } - public enum CyclicReferenceHandling - { - Ignore = 0, - ThrowException = 1, - } - public enum EnumEquivalencyHandling - { - ByValue = 0, - ByName = 1, - } - public enum EqualityStrategy - { - Equals = 0, - Members = 1, - ForceEquals = 2, - ForceMembers = 3, - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - public EquivalencyAssertionOptions() { } - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> - { - public EquivalencyAssertionOptions() { } - public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } - } - public enum EquivalencyResult - { - ContinueWithNext = 0, - AssertionCompleted = 1, - } - public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - protected EquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext - { - public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.INode CurrentNode { get; } - public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - public FluentAssertions.Execution.Reason Reason { get; set; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } - public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } - public bool IsCyclicReference(object expectation) { } - public override string ToString() { } - } - public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator - { - public EquivalencyValidator() { } - public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } - public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } - } - public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; set; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public delegate string GetSubjectId(); - public interface IAssertionContext - { - string Because { get; set; } - object[] BecauseArgs { get; set; } - TSubject Expectation { get; } - FluentAssertions.Equivalency.INode SelectedNode { get; } - TSubject Subject { get; } - } - public interface IEquivalencyAssertionOptions - { - bool AllowInfiniteRecursion { get; } - bool CompareRecordsByValue { get; } - FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } - FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } - bool ExcludeNonBrowsableOnExpectation { get; } - bool IgnoreNonBrowsableOnSubject { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - bool IsRecursive { get; } - System.Collections.Generic.IEnumerable MatchingRules { get; } - FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - System.Collections.Generic.IEnumerable SelectionRules { get; } - FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - bool UseRuntimeTyping { get; } - System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } - FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); - } - public interface IEquivalencyStep - { - FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public interface IEquivalencyValidationContext - { - FluentAssertions.Equivalency.INode CurrentNode { get; } - FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - FluentAssertions.Execution.Reason Reason { get; } - FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); - FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); - bool IsCyclicReference(object expectation); - } - public interface IEquivalencyValidator - { - void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); - } - public interface IMember : FluentAssertions.Equivalency.INode - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - bool IsBrowsable { get; } - System.Type ReflectedType { get; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - object GetValue(object obj); - } - public interface IMemberInfo - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - string Name { get; } - string Path { get; set; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - System.Type Type { get; } - } - public interface IMemberMatchingRule - { - FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); - } - public interface IMemberSelectionRule - { - bool IncludesMembers { get; } - System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); - } - public interface INode - { - int Depth { get; } - string Description { get; } - FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } - bool IsRoot { get; } - string Name { get; set; } - string Path { get; } - string PathAndName { get; } - bool RootIsCollection { get; } - System.Type Type { get; } - } - public interface IObjectInfo - { - System.Type CompileTimeType { get; } - string Path { get; set; } - System.Type RuntimeType { get; } - System.Type Type { get; } - } - public interface IOrderingRule - { - FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); - } - public static class MemberFactory - { - public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } - } - public class MemberSelectionContext - { - public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - public System.Type Type { get; } - } - [System.Flags] - public enum MemberVisibility - { - None = 0, - Internal = 1, - Public = 2, - } - public class Node : FluentAssertions.Equivalency.INode - { - public Node() { } - public int Depth { get; } - public virtual string Description { get; } - public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } - public bool IsRoot { get; } - public string Name { get; set; } - public string Path { get; set; } - public string PathAndName { get; } - public bool RootIsCollection { get; set; } - public System.Type Type { get; set; } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public override string ToString() { } - public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } - public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } - public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } - } - public enum OrderStrictness - { - Strict = 0, - NotStrict = 1, - Irrelevant = 2, - } - public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public OrderingRuleCollection() { } - public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } - public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } - } - public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public bool CompareRecordsByValue { get; } - public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] - protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf AllowingInfiniteRecursion() { } - public TSelf ComparingByMembers(System.Type type) { } - public TSelf ComparingByMembers() { } - public TSelf ComparingByValue(System.Type type) { } - public TSelf ComparingByValue() { } - public TSelf ComparingEnumsByName() { } - public TSelf ComparingEnumsByValue() { } - public TSelf ComparingRecordsByMembers() { } - public TSelf ComparingRecordsByValue() { } - public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } - public TSelf ExcludingFields() { } - public TSelf ExcludingMissingMembers() { } - public TSelf ExcludingNestedObjects() { } - public TSelf ExcludingNonBrowsableMembers() { } - public TSelf ExcludingProperties() { } - public TSelf IgnoringCyclicReferences() { } - public TSelf IgnoringNonBrowsableMembersOnSubject() { } - public TSelf Including(System.Linq.Expressions.Expression> predicate) { } - public TSelf IncludingAllDeclaredProperties() { } - public TSelf IncludingAllRuntimeProperties() { } - public TSelf IncludingFields() { } - public TSelf IncludingInternalFields() { } - public TSelf IncludingInternalProperties() { } - public TSelf IncludingNestedObjects() { } - public TSelf IncludingProperties() { } - public TSelf RespectingDeclaredTypes() { } - public TSelf RespectingRuntimeTypes() { } - public TSelf ThrowingOnMissingMembers() { } - public override string ToString() { } - public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } - public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } - public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } - public TSelf Using() - where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } - public TSelf WithAutoConversion() { } - public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithStrictOrdering() { } - public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } - public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public void WithoutMatchingRules() { } - public void WithoutSelectionRules() { } - public TSelf WithoutStrictOrdering() { } - public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public class Restriction - { - public Restriction(TSelf options, System.Action> action) { } - public TSelf When(System.Linq.Expressions.Expression> predicate) { } - public TSelf WhenTypeIs() - where TMemberType : TMember { } - } - } - public static class SubjectInfoExtensions - { - public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - } -} -namespace FluentAssertions.Equivalency.Steps -{ - public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AutoConversionStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataColumnEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRelationEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataSetEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataTableEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DictionaryEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumEqualityStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericDictionaryEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericEnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ReferenceEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public RunAllUserStepsEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public SimpleEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StringEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StructuralEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ValueTypeEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XAttributeEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XDocumentEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XElementEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } -} -namespace FluentAssertions.Equivalency.Tracing -{ - public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); - public interface ITraceWriter - { - System.IDisposable AddBlock(string trace); - void AddSingle(string trace); - string ToString(); - } - public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter - { - public StringBuilderTraceWriter() { } - public System.IDisposable AddBlock(string trace) { } - public void AddSingle(string trace) { } - public override string ToString() { } - } - public class Tracer - { - public override string ToString() { } - public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - } -} -namespace FluentAssertions.Events -{ - public class EventAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - { - protected EventAssertions(FluentAssertions.Events.IMonitor monitor) { } - protected override string Identifier { get; } - public void NotRaise(string eventName, string because = "", params object[] becauseArgs) { } - public void NotRaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Events.IEventRecording Raise(string eventName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Events.IEventRecording RaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - } - public class EventMetadata - { - public EventMetadata(string eventName, System.Type handlerType) { } - public string EventName { get; } - public System.Type HandlerType { get; } - } - public interface IEventRecording : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - System.Type EventHandlerType { get; } - string EventName { get; } - object EventObject { get; } - } - public interface IMonitor : System.IDisposable - { - FluentAssertions.Events.EventMetadata[] MonitoredEvents { get; } - FluentAssertions.Events.OccurredEvent[] OccurredEvents { get; } - T Subject { get; } - void Clear(); - FluentAssertions.Events.IEventRecording GetRecordingFor(string eventName); - FluentAssertions.Events.EventAssertions Should(); - } - public class OccurredEvent - { - public OccurredEvent() { } - public string EventName { get; set; } - public object[] Parameters { get; set; } - public int Sequence { get; set; } - public System.DateTime TimestampUtc { get; set; } - } -} -namespace FluentAssertions.Execution -{ - [System.Serializable] - public class AssertionFailedException : System.Exception - { - public AssertionFailedException(string message) { } - protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public AssertionScope() { } - public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } - public AssertionScope(System.Lazy context) { } - public AssertionScope(string context) { } - public string CallerIdentity { get; } - public System.Lazy Context { get; set; } - public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } - public static FluentAssertions.Execution.AssertionScope Current { get; } - public void AddNonReportable(string key, object value) { } - public void AddPreFormattedFailure(string formattedFailureMessage) { } - public void AddReportable(string key, System.Func valueFunc) { } - public void AddReportable(string key, string value) { } - public void AppendTracing(string tracingBlock) { } - public void AssumeSingleCaller() { } - public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } - public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } - public T Get(string key) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public bool HasFailures() { } - public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } - } - public class Continuation - { - public FluentAssertions.Execution.IAssertionScope Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } - } - public class ContinuationOfGiven - { - public FluentAssertions.Execution.GivenSelector Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } - } - public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } - } - public static class Execute - { - public static FluentAssertions.Execution.AssertionScope Assertion { get; } - } - public class FailReason - { - public FailReason(string message, params object[] args) { } - public object[] Args { get; } - public string Message { get; } - } - public class GivenSelector - { - public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - } - public interface IAssertionScope : System.IDisposable - { - FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); - FluentAssertions.Execution.Continuation ClearExpectation(); - string[] Discard(); - FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); - FluentAssertions.Execution.Continuation FailWith(string message); - FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); - FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); - FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); - FluentAssertions.Execution.GivenSelector Given(System.Func selector); - FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); - FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); - } - public interface IAssertionStrategy - { - System.Collections.Generic.IEnumerable FailureMessages { get; } - System.Collections.Generic.IEnumerable DiscardFailures(); - void HandleFailure(string message); - void ThrowIfAny(System.Collections.Generic.IDictionary context); - } - public interface ICloneable2 - { - object Clone(); - } - public class Reason - { - public Reason(string formattedMessage, object[] arguments) { } - public object[] Arguments { get; set; } - public string FormattedMessage { get; set; } - } -} -namespace FluentAssertions.Extensions -{ - public static class FluentDateTimeExtensions - { - public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } - public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } - public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } - public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } - public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime April(this int day, int year) { } - public static System.DateTime AsLocal(this System.DateTime dateTime) { } - public static System.DateTime AsUtc(this System.DateTime dateTime) { } - public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } - public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTime August(this int day, int year) { } - public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime December(this int day, int year) { } - public static System.DateTime February(this int day, int year) { } - public static System.DateTime January(this int day, int year) { } - public static System.DateTime July(this int day, int year) { } - public static System.DateTime June(this int day, int year) { } - public static System.DateTime March(this int day, int year) { } - public static System.DateTime May(this int day, int year) { } - public static int Microsecond(this System.DateTime self) { } - public static int Microsecond(this System.DateTimeOffset self) { } - public static int Nanosecond(this System.DateTime self) { } - public static int Nanosecond(this System.DateTimeOffset self) { } - public static System.DateTime November(this int day, int year) { } - public static System.DateTime October(this int day, int year) { } - public static System.DateTime September(this int day, int year) { } - public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } - } - public static class FluentTimeSpanExtensions - { - public const long TicksPerMicrosecond = 10; - public const double TicksPerNanosecond = 0.01D; - public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } - public static System.TimeSpan Days(this double days) { } - public static System.TimeSpan Days(this int days) { } - public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } - public static System.TimeSpan Hours(this double hours) { } - public static System.TimeSpan Hours(this int hours) { } - public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } - public static int Microseconds(this System.TimeSpan self) { } - public static System.TimeSpan Microseconds(this int microseconds) { } - public static System.TimeSpan Microseconds(this long microseconds) { } - public static System.TimeSpan Milliseconds(this double milliseconds) { } - public static System.TimeSpan Milliseconds(this int milliseconds) { } - public static System.TimeSpan Minutes(this double minutes) { } - public static System.TimeSpan Minutes(this int minutes) { } - public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } - public static int Nanoseconds(this System.TimeSpan self) { } - public static System.TimeSpan Nanoseconds(this int nanoseconds) { } - public static System.TimeSpan Nanoseconds(this long nanoseconds) { } - public static System.TimeSpan Seconds(this double seconds) { } - public static System.TimeSpan Seconds(this int seconds) { } - public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } - public static System.TimeSpan Ticks(this int ticks) { } - public static System.TimeSpan Ticks(this long ticks) { } - public static double TotalMicroseconds(this System.TimeSpan self) { } - public static double TotalNanoseconds(this System.TimeSpan self) { } - } -} -namespace FluentAssertions.Formatting -{ - public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AggregateExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AttributeBasedFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DateTimeOffsetValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DecimalValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DefaultValueFormatter() { } - protected virtual int SpacesPerIndentionLevel { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } - protected virtual string TypeDisplayName(System.Type type) { } - } - public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DictionaryValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DoubleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumValueFormatter() { } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumerableValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); - public class FormattedObjectGraph - { - public FormattedObjectGraph(int maxLines) { } - public int LineCount { get; } - public static int SpacesPerIndentation { get; } - public void AddFragment(string fragment) { } - public void AddFragmentOnNewLine(string fragment) { } - public void AddLine(string line) { } - public override string ToString() { } - public System.IDisposable WithIndentation() { } - } - public static class Formatter - { - public static System.Collections.Generic.IEnumerable Formatters { get; } - public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } - } - public class FormattingContext - { - public FormattingContext() { } - public bool UseLineBreaks { get; set; } - } - public class FormattingOptions - { - public FormattingOptions() { } - public int MaxDepth { get; set; } - public int MaxLines { get; set; } - public bool UseLineBreaks { get; set; } - } - public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public GuidValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public interface IValueFormatter - { - bool CanHandle(object value); - void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); - } - public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class MaxLinesExceededException : System.Exception - { - public MaxLinesExceededException() { } - public MaxLinesExceededException(string message) { } - public MaxLinesExceededException(string message, System.Exception innerException) { } - } - public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter - { - public MultidimensionalArrayFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public NullValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PredicateLambdaExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PropertyInfoFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SingleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public StringValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TaskFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TimeSpanValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class ValueFormatterAttribute : System.Attribute - { - public ValueFormatterAttribute() { } - } - public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XAttributeValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XDocumentValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XElementValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlReaderValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} -namespace FluentAssertions.Numeric -{ - public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> - { - public ComparableTypeAssertions(System.IComparable value) { } - } - public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> - where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions - { - public ComparableTypeAssertions(System.IComparable value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> - where T : struct, System.IComparable - { - public NullableNumericAssertions(T? value) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions - { - public NullableNumericAssertions(T? value) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> - where T : struct, System.IComparable - { - public NumericAssertions(T value) { } - } - public class NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions - { - public NumericAssertions(T value) { } - public T? Subject { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Primitives -{ - public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - } - public class BooleanAssertions - where TAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - public bool? Subject { get; } - public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - } - public class DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - public System.DateTime? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - } - public class DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - public System.DateTimeOffset? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class DateTimeRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> - where TEnum : struct, System.Enum - { - public EnumAssertions(TEnum subject) { } - } - public class EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions - { - public EnumAssertions(TEnum subject) { } - public TEnum? Subject { get; } - public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } - } - public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - } - public class GuidAssertions - where TAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - public System.Guid? Subject { get; } - public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions - where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> - where TEnum : struct, System.Enum - { - public NullableEnumAssertions(TEnum? subject) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions - { - public NullableEnumAssertions(TEnum? subject) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions - where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(object value) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(TSubject value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public abstract class ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - protected ReferenceTypeAssertions(TSubject subject) { } - protected abstract string Identifier { get; } - public TSubject Subject { get; } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where T : TSubject { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } - } - public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - public System.TimeSpan? Subject { get; } - public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - } - public class StringAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - } - public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAll(params string[] values) { } - public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAny(params string[] values) { } - public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - } - public enum TimeSpanCondition - { - MoreThan = 0, - AtLeast = 1, - Exactly = 2, - Within = 3, - LessThan = 4, - } -} -namespace FluentAssertions.Reflection -{ - public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public AssemblyAssertions(System.Reflection.Assembly assembly) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Specialized -{ - public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions - { - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - } - public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> - where TTask : System.Threading.Tasks.Task - where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - { - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertions - { - protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } - protected abstract void InvokeSubject(); - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> - where TException : System.Exception - { - public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } - public TException And { get; } - protected override string Identifier { get; } - public TException Which { get; } - public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class ExecutionTime - { - public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } - public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - } - public class ExecutionTimeAssertions - { - public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> - { - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - } - public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> - { - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } - } - public interface IExtractExceptions - { - System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception; - } - public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime - { - public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } - } - public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - } - public class TaskCompletionSourceAssertions - { - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Streams -{ - public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - } - public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions - where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class StreamAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(System.IO.Stream stream) { } - } - public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.IO.Stream - where TAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(TSubject stream) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Types -{ - public static class AllTypes - { - public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } - } - public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } - protected override string Identifier { get; } - } - public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Reflection.MemberInfo - where TAssertions : FluentAssertions.Types.MemberInfoAssertions - { - protected MemberInfoAssertions(TSubject subject) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - } - public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions - where TSubject : System.Reflection.MethodBase - where TAssertions : FluentAssertions.Types.MethodBaseAssertions - { - protected MethodBaseAssertions(TSubject subject) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - } - public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } - } - public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } - public MethodInfoSelector(System.Type type) { } - public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } - public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } - public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } - public System.Reflection.MethodInfo[] ToArray() { } - } - public class MethodInfoSelectorAssertions - { - public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectMethods { get; } - public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions - { - public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } - public PropertyInfoSelector(System.Type type) { } - public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } - public FluentAssertions.Types.PropertyInfoSelector OfType() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public System.Reflection.PropertyInfo[] ToArray() { } - } - public class PropertyInfoSelectorAssertions - { - public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectProperties { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - } - public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public TypeAssertions(System.Type type) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) - where TInterface : class { } - } - public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public TypeSelector(System.Collections.Generic.IEnumerable types) { } - public TypeSelector(System.Type type) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ThatAreClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } - public FluentAssertions.Types.TypeSelector ThatImplement() { } - public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } - public System.Type[] ToArray() { } - public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } - public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } - } - public class TypeSelectorAssertions - { - public TypeSelectorAssertions(params System.Type[] types) { } - public System.Collections.Generic.IEnumerable Subject { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Xml -{ - public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } - } - public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XDocumentAssertions(System.Xml.Linq.XDocument document) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - } - public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XElementAssertions(System.Xml.Linq.XElement xElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } - } - public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Xml.XmlNode - where TAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(TSubject xmlNode) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlNodeFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} \ No newline at end of file diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt deleted file mode 100644 index 89e5657171..0000000000 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt +++ /dev/null @@ -1,2740 +0,0 @@ -[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v3.0", FrameworkDisplayName="")] -namespace FluentAssertions -{ - public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions - { - public AggregateExceptionExtractor() { } - public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception { } - } - public class AndConstraint - { - public AndConstraint(T parentConstraint) { } - public T And { get; } - } - public class AndWhichConstraint : FluentAssertions.AndConstraint - { - public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } - public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } - public TMatchedElement Subject { get; } - public TMatchedElement Which { get; } - } - public static class AssertionExtensions - { - public static TTo As(this object subject) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Action Enumerating(this System.Func enumerable) { } - public static System.Action Enumerating(this System.Func> enumerable) { } - public static System.Action Enumerating(this T subject, System.Func> enumerable) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static System.Action Invoking(this T subject, System.Action action) { } - public static System.Func Invoking(this T subject, System.Func action) { } - public static FluentAssertions.Events.IMonitor Monitor(this T eventSource, System.Func utcNow = null) { } - public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } - public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } - public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } - public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } - public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } - public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } - public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } - public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } - public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } - public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } - public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } - public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } - public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } - public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } - public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } - public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } - public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } - public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } - public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } - public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } - public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } - public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } - public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } - public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } - public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } - public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } - public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } - public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) - where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.GuidAssertions _) - where TAssertions : FluentAssertions.Primitives.GuidAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } - public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } - public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } - public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } - public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Numeric.NumericAssertions _) - where TSubject : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.EnumAssertions _) - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } - public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) - where TCollection : System.Collections.Generic.IEnumerable> { } - } - public static class AssertionOptions - { - public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } - public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } - public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } - } - public static class AsyncAssertionsExtensions - { - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - } - public static class AtLeast - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class AtMost - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class CallerIdentifier - { - public static System.Action Logger { get; set; } - public static string DetermineCallerIdentity() { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class CustomAssertionAttribute : System.Attribute - { - public CustomAssertionAttribute() { } - } - public static class DataColumnCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataRowAssertionExtensions - { - public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) - where TDataRow : System.Data.DataRow { } - } - public static class DataRowCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataSetAssertionExtensions - { - public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) - where TDataSet : System.Data.DataSet { } - } - public static class DataTableAssertionExtensions - { - public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) - where TDataTable : System.Data.DataTable { } - } - public static class DataTableCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class EnumAssertionsExtensions - { - public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) - where TEnum : struct, System.Enum { } - public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) - where TEnum : struct, System.Enum { } - } - public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public EquivalencyPlan() { } - public void Add() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void AddAfter() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Clear() { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public void Insert() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void InsertBefore() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Remove() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } - public void Reset() { } - } - public static class EventRaisingExtensions - { - public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, System.Linq.Expressions.Expression> predicate) { } - public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, params System.Linq.Expressions.Expression>[] predicates) { } - public static FluentAssertions.Events.IEventRecording WithSender(this FluentAssertions.Events.IEventRecording eventRecording, object expectedSender) { } - } - public static class Exactly - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class ExceptionAssertionsExtensions - { - public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - } - public static class FluentActions - { - public static System.Func Awaiting(System.Func action) { } - public static System.Func> Awaiting(System.Func> func) { } - public static System.Action Enumerating(System.Func enumerable) { } - public static System.Action Enumerating(System.Func> enumerable) { } - public static System.Action Invoking(System.Action action) { } - public static System.Func Invoking(System.Func func) { } - } - public static class LessThan - { - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class MoreThan - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class NumericAssertionsExtensions - { - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - } - public static class ObjectAssertionsExtensions - { - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - } - public abstract class OccurrenceConstraint - { - protected OccurrenceConstraint(int expectedCount) { } - } - public static class TypeEnumerableExtensions - { - public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } - public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } - } - public static class TypeExtensions - { - public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } - } - public static class XmlAssertionExtensions - { - public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } - public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } - } -} -namespace FluentAssertions.Collections -{ - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> - { - public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public GenericCollectionAssertions(TCollection actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions - { - public GenericCollectionAssertions(TCollection actualValue) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } - public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(params T[] elements) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } - public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where TKey : class { } - public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } - public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } - public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } - public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } - public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } - public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } - public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - { - public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public StringCollectionAssertions(TCollection actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.StringCollectionAssertions - { - public StringCollectionAssertions(TCollection actualValue) { } - public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } - public FluentAssertions.AndConstraint Equal(params string[] expected) { } - public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> - { - public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - } - public class WhoseValueConstraint : FluentAssertions.AndConstraint - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } - public TValue WhoseValue { get; } - } -} -namespace FluentAssertions.Common -{ - public enum CSharpAccessModifier - { - Public = 0, - Private = 1, - Protected = 2, - Internal = 3, - ProtectedInternal = 4, - InvalidForCSharp = 5, - PrivateProtected = 6, - } - public class Configuration - { - public Configuration(FluentAssertions.Common.IConfigurationStore store) { } - public string TestFrameworkName { get; set; } - public string ValueFormatterAssembly { get; set; } - public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } - public static FluentAssertions.Common.Configuration Current { get; } - } - public static class DateTimeExtensions - { - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } - } - public interface IClock - { - void Delay(System.TimeSpan timeToDelay); - System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); - FluentAssertions.Common.ITimer StartTimer(); - } - public interface IConfigurationStore - { - string GetSetting(string name); - } - public interface IReflector - { - System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); - } - public interface ITimer : System.IDisposable - { - System.TimeSpan Elapsed { get; } - } - public static class Services - { - public static FluentAssertions.Common.Configuration Configuration { get; } - public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } - public static FluentAssertions.Common.IReflector Reflector { get; set; } - public static System.Action ThrowException { get; set; } - public static void ResetToDefaults() { } - } - public delegate FluentAssertions.Common.ITimer StartTimer(); - public enum ValueFormatterDetectionMode - { - Disabled = 0, - Specific = 1, - Scan = 2, - } -} -namespace FluentAssertions.Data -{ - public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public DataColumnAssertions(System.Data.DataColumn dataColumn) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataRow : System.Data.DataRow - { - public DataRowAssertions(TDataRow dataRow) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - } - public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataSet : System.Data.DataSet - { - public DataSetAssertions(TDataSet dataSet) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } - public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } - } - public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataTable : System.Data.DataTable - { - public DataTableAssertions(TDataTable dataTable) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } - } - public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - { - FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); - } - public enum RowMatchMode - { - Index = 0, - PrimaryKey = 1, - } -} -namespace FluentAssertions.Equivalency -{ - public class Comparands - { - public Comparands() { } - public Comparands(object subject, object expectation, System.Type compileTimeType) { } - public System.Type CompileTimeType { get; set; } - public object Expectation { get; set; } - public System.Type RuntimeType { get; } - public object Subject { get; set; } - public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public override string ToString() { } - } - public class ConversionSelector - { - public ConversionSelector() { } - public FluentAssertions.Equivalency.ConversionSelector Clone() { } - public void Exclude(System.Linq.Expressions.Expression> predicate) { } - public void Include(System.Linq.Expressions.Expression> predicate) { } - public void IncludeAll() { } - public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } - public override string ToString() { } - } - public enum CyclicReferenceHandling - { - Ignore = 0, - ThrowException = 1, - } - public enum EnumEquivalencyHandling - { - ByValue = 0, - ByName = 1, - } - public enum EqualityStrategy - { - Equals = 0, - Members = 1, - ForceEquals = 2, - ForceMembers = 3, - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - public EquivalencyAssertionOptions() { } - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> - { - public EquivalencyAssertionOptions() { } - public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } - } - public enum EquivalencyResult - { - ContinueWithNext = 0, - AssertionCompleted = 1, - } - public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - protected EquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext - { - public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.INode CurrentNode { get; } - public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - public FluentAssertions.Execution.Reason Reason { get; set; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } - public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } - public bool IsCyclicReference(object expectation) { } - public override string ToString() { } - } - public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator - { - public EquivalencyValidator() { } - public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } - public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } - } - public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; set; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public delegate string GetSubjectId(); - public interface IAssertionContext - { - string Because { get; set; } - object[] BecauseArgs { get; set; } - TSubject Expectation { get; } - FluentAssertions.Equivalency.INode SelectedNode { get; } - TSubject Subject { get; } - } - public interface IEquivalencyAssertionOptions - { - bool AllowInfiniteRecursion { get; } - bool CompareRecordsByValue { get; } - FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } - FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } - bool ExcludeNonBrowsableOnExpectation { get; } - bool IgnoreNonBrowsableOnSubject { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - bool IsRecursive { get; } - System.Collections.Generic.IEnumerable MatchingRules { get; } - FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - System.Collections.Generic.IEnumerable SelectionRules { get; } - FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - bool UseRuntimeTyping { get; } - System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } - FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); - } - public interface IEquivalencyStep - { - FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public interface IEquivalencyValidationContext - { - FluentAssertions.Equivalency.INode CurrentNode { get; } - FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - FluentAssertions.Execution.Reason Reason { get; } - FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); - FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); - bool IsCyclicReference(object expectation); - } - public interface IEquivalencyValidator - { - void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); - } - public interface IMember : FluentAssertions.Equivalency.INode - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - bool IsBrowsable { get; } - System.Type ReflectedType { get; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - object GetValue(object obj); - } - public interface IMemberInfo - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - string Name { get; } - string Path { get; set; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - System.Type Type { get; } - } - public interface IMemberMatchingRule - { - FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); - } - public interface IMemberSelectionRule - { - bool IncludesMembers { get; } - System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); - } - public interface INode - { - int Depth { get; } - string Description { get; } - FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } - bool IsRoot { get; } - string Name { get; set; } - string Path { get; } - string PathAndName { get; } - bool RootIsCollection { get; } - System.Type Type { get; } - } - public interface IObjectInfo - { - System.Type CompileTimeType { get; } - string Path { get; set; } - System.Type RuntimeType { get; } - System.Type Type { get; } - } - public interface IOrderingRule - { - FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); - } - public static class MemberFactory - { - public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } - } - public class MemberSelectionContext - { - public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - public System.Type Type { get; } - } - [System.Flags] - public enum MemberVisibility - { - None = 0, - Internal = 1, - Public = 2, - } - public class Node : FluentAssertions.Equivalency.INode - { - public Node() { } - public int Depth { get; } - public virtual string Description { get; } - public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } - public bool IsRoot { get; } - public string Name { get; set; } - public string Path { get; set; } - public string PathAndName { get; } - public bool RootIsCollection { get; set; } - public System.Type Type { get; set; } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public override string ToString() { } - public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } - public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } - public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } - } - public enum OrderStrictness - { - Strict = 0, - NotStrict = 1, - Irrelevant = 2, - } - public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public OrderingRuleCollection() { } - public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } - public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } - } - public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public bool CompareRecordsByValue { get; } - public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] - protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf AllowingInfiniteRecursion() { } - public TSelf ComparingByMembers(System.Type type) { } - public TSelf ComparingByMembers() { } - public TSelf ComparingByValue(System.Type type) { } - public TSelf ComparingByValue() { } - public TSelf ComparingEnumsByName() { } - public TSelf ComparingEnumsByValue() { } - public TSelf ComparingRecordsByMembers() { } - public TSelf ComparingRecordsByValue() { } - public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } - public TSelf ExcludingFields() { } - public TSelf ExcludingMissingMembers() { } - public TSelf ExcludingNestedObjects() { } - public TSelf ExcludingNonBrowsableMembers() { } - public TSelf ExcludingProperties() { } - public TSelf IgnoringCyclicReferences() { } - public TSelf IgnoringNonBrowsableMembersOnSubject() { } - public TSelf Including(System.Linq.Expressions.Expression> predicate) { } - public TSelf IncludingAllDeclaredProperties() { } - public TSelf IncludingAllRuntimeProperties() { } - public TSelf IncludingFields() { } - public TSelf IncludingInternalFields() { } - public TSelf IncludingInternalProperties() { } - public TSelf IncludingNestedObjects() { } - public TSelf IncludingProperties() { } - public TSelf RespectingDeclaredTypes() { } - public TSelf RespectingRuntimeTypes() { } - public TSelf ThrowingOnMissingMembers() { } - public override string ToString() { } - public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } - public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } - public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } - public TSelf Using() - where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } - public TSelf WithAutoConversion() { } - public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithStrictOrdering() { } - public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } - public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public void WithoutMatchingRules() { } - public void WithoutSelectionRules() { } - public TSelf WithoutStrictOrdering() { } - public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public class Restriction - { - public Restriction(TSelf options, System.Action> action) { } - public TSelf When(System.Linq.Expressions.Expression> predicate) { } - public TSelf WhenTypeIs() - where TMemberType : TMember { } - } - } - public static class SubjectInfoExtensions - { - public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - } -} -namespace FluentAssertions.Equivalency.Steps -{ - public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AutoConversionStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataColumnEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRelationEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataSetEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataTableEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DictionaryEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumEqualityStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericDictionaryEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericEnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ReferenceEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public RunAllUserStepsEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public SimpleEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StringEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StructuralEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ValueTypeEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XAttributeEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XDocumentEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XElementEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } -} -namespace FluentAssertions.Equivalency.Tracing -{ - public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); - public interface ITraceWriter - { - System.IDisposable AddBlock(string trace); - void AddSingle(string trace); - string ToString(); - } - public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter - { - public StringBuilderTraceWriter() { } - public System.IDisposable AddBlock(string trace) { } - public void AddSingle(string trace) { } - public override string ToString() { } - } - public class Tracer - { - public override string ToString() { } - public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - } -} -namespace FluentAssertions.Events -{ - public class EventAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - { - protected EventAssertions(FluentAssertions.Events.IMonitor monitor) { } - protected override string Identifier { get; } - public void NotRaise(string eventName, string because = "", params object[] becauseArgs) { } - public void NotRaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Events.IEventRecording Raise(string eventName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Events.IEventRecording RaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - } - public class EventMetadata - { - public EventMetadata(string eventName, System.Type handlerType) { } - public string EventName { get; } - public System.Type HandlerType { get; } - } - public interface IEventRecording : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - System.Type EventHandlerType { get; } - string EventName { get; } - object EventObject { get; } - } - public interface IMonitor : System.IDisposable - { - FluentAssertions.Events.EventMetadata[] MonitoredEvents { get; } - FluentAssertions.Events.OccurredEvent[] OccurredEvents { get; } - T Subject { get; } - void Clear(); - FluentAssertions.Events.IEventRecording GetRecordingFor(string eventName); - FluentAssertions.Events.EventAssertions Should(); - } - public class OccurredEvent - { - public OccurredEvent() { } - public string EventName { get; set; } - public object[] Parameters { get; set; } - public int Sequence { get; set; } - public System.DateTime TimestampUtc { get; set; } - } -} -namespace FluentAssertions.Execution -{ - [System.Serializable] - public class AssertionFailedException : System.Exception - { - public AssertionFailedException(string message) { } - protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public AssertionScope() { } - public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } - public AssertionScope(System.Lazy context) { } - public AssertionScope(string context) { } - public string CallerIdentity { get; } - public System.Lazy Context { get; set; } - public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } - public static FluentAssertions.Execution.AssertionScope Current { get; } - public void AddNonReportable(string key, object value) { } - public void AddPreFormattedFailure(string formattedFailureMessage) { } - public void AddReportable(string key, System.Func valueFunc) { } - public void AddReportable(string key, string value) { } - public void AppendTracing(string tracingBlock) { } - public void AssumeSingleCaller() { } - public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } - public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } - public T Get(string key) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public bool HasFailures() { } - public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } - } - public class Continuation - { - public FluentAssertions.Execution.IAssertionScope Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } - } - public class ContinuationOfGiven - { - public FluentAssertions.Execution.GivenSelector Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } - } - public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } - } - public static class Execute - { - public static FluentAssertions.Execution.AssertionScope Assertion { get; } - } - public class FailReason - { - public FailReason(string message, params object[] args) { } - public object[] Args { get; } - public string Message { get; } - } - public class GivenSelector - { - public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - } - public interface IAssertionScope : System.IDisposable - { - FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); - FluentAssertions.Execution.Continuation ClearExpectation(); - string[] Discard(); - FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); - FluentAssertions.Execution.Continuation FailWith(string message); - FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); - FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); - FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); - FluentAssertions.Execution.GivenSelector Given(System.Func selector); - FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); - FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); - } - public interface IAssertionStrategy - { - System.Collections.Generic.IEnumerable FailureMessages { get; } - System.Collections.Generic.IEnumerable DiscardFailures(); - void HandleFailure(string message); - void ThrowIfAny(System.Collections.Generic.IDictionary context); - } - public interface ICloneable2 - { - object Clone(); - } - public class Reason - { - public Reason(string formattedMessage, object[] arguments) { } - public object[] Arguments { get; set; } - public string FormattedMessage { get; set; } - } -} -namespace FluentAssertions.Extensions -{ - public static class FluentDateTimeExtensions - { - public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } - public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } - public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } - public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } - public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime April(this int day, int year) { } - public static System.DateTime AsLocal(this System.DateTime dateTime) { } - public static System.DateTime AsUtc(this System.DateTime dateTime) { } - public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } - public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTime August(this int day, int year) { } - public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime December(this int day, int year) { } - public static System.DateTime February(this int day, int year) { } - public static System.DateTime January(this int day, int year) { } - public static System.DateTime July(this int day, int year) { } - public static System.DateTime June(this int day, int year) { } - public static System.DateTime March(this int day, int year) { } - public static System.DateTime May(this int day, int year) { } - public static int Microsecond(this System.DateTime self) { } - public static int Microsecond(this System.DateTimeOffset self) { } - public static int Nanosecond(this System.DateTime self) { } - public static int Nanosecond(this System.DateTimeOffset self) { } - public static System.DateTime November(this int day, int year) { } - public static System.DateTime October(this int day, int year) { } - public static System.DateTime September(this int day, int year) { } - public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } - } - public static class FluentTimeSpanExtensions - { - public const long TicksPerMicrosecond = 10; - public const double TicksPerNanosecond = 0.01D; - public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } - public static System.TimeSpan Days(this double days) { } - public static System.TimeSpan Days(this int days) { } - public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } - public static System.TimeSpan Hours(this double hours) { } - public static System.TimeSpan Hours(this int hours) { } - public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } - public static int Microseconds(this System.TimeSpan self) { } - public static System.TimeSpan Microseconds(this int microseconds) { } - public static System.TimeSpan Microseconds(this long microseconds) { } - public static System.TimeSpan Milliseconds(this double milliseconds) { } - public static System.TimeSpan Milliseconds(this int milliseconds) { } - public static System.TimeSpan Minutes(this double minutes) { } - public static System.TimeSpan Minutes(this int minutes) { } - public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } - public static int Nanoseconds(this System.TimeSpan self) { } - public static System.TimeSpan Nanoseconds(this int nanoseconds) { } - public static System.TimeSpan Nanoseconds(this long nanoseconds) { } - public static System.TimeSpan Seconds(this double seconds) { } - public static System.TimeSpan Seconds(this int seconds) { } - public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } - public static System.TimeSpan Ticks(this int ticks) { } - public static System.TimeSpan Ticks(this long ticks) { } - public static double TotalMicroseconds(this System.TimeSpan self) { } - public static double TotalNanoseconds(this System.TimeSpan self) { } - } -} -namespace FluentAssertions.Formatting -{ - public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AggregateExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AttributeBasedFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DateTimeOffsetValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DecimalValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DefaultValueFormatter() { } - protected virtual int SpacesPerIndentionLevel { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } - protected virtual string TypeDisplayName(System.Type type) { } - } - public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DictionaryValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DoubleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumValueFormatter() { } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumerableValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); - public class FormattedObjectGraph - { - public FormattedObjectGraph(int maxLines) { } - public int LineCount { get; } - public static int SpacesPerIndentation { get; } - public void AddFragment(string fragment) { } - public void AddFragmentOnNewLine(string fragment) { } - public void AddLine(string line) { } - public override string ToString() { } - public System.IDisposable WithIndentation() { } - } - public static class Formatter - { - public static System.Collections.Generic.IEnumerable Formatters { get; } - public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } - } - public class FormattingContext - { - public FormattingContext() { } - public bool UseLineBreaks { get; set; } - } - public class FormattingOptions - { - public FormattingOptions() { } - public int MaxDepth { get; set; } - public int MaxLines { get; set; } - public bool UseLineBreaks { get; set; } - } - public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public GuidValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public interface IValueFormatter - { - bool CanHandle(object value); - void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); - } - public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class MaxLinesExceededException : System.Exception - { - public MaxLinesExceededException() { } - public MaxLinesExceededException(string message) { } - public MaxLinesExceededException(string message, System.Exception innerException) { } - } - public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter - { - public MultidimensionalArrayFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public NullValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PredicateLambdaExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PropertyInfoFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SingleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public StringValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TaskFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TimeSpanValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class ValueFormatterAttribute : System.Attribute - { - public ValueFormatterAttribute() { } - } - public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XAttributeValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XDocumentValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XElementValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlReaderValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} -namespace FluentAssertions.Numeric -{ - public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> - { - public ComparableTypeAssertions(System.IComparable value) { } - } - public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> - where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions - { - public ComparableTypeAssertions(System.IComparable value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> - where T : struct, System.IComparable - { - public NullableNumericAssertions(T? value) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions - { - public NullableNumericAssertions(T? value) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> - where T : struct, System.IComparable - { - public NumericAssertions(T value) { } - } - public class NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions - { - public NumericAssertions(T value) { } - public T? Subject { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Primitives -{ - public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - } - public class BooleanAssertions - where TAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - public bool? Subject { get; } - public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - } - public class DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - public System.DateTime? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - } - public class DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - public System.DateTimeOffset? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class DateTimeRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> - where TEnum : struct, System.Enum - { - public EnumAssertions(TEnum subject) { } - } - public class EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions - { - public EnumAssertions(TEnum subject) { } - public TEnum? Subject { get; } - public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } - } - public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - } - public class GuidAssertions - where TAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - public System.Guid? Subject { get; } - public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions - where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> - where TEnum : struct, System.Enum - { - public NullableEnumAssertions(TEnum? subject) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions - { - public NullableEnumAssertions(TEnum? subject) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions - where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(object value) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(TSubject value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public abstract class ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - protected ReferenceTypeAssertions(TSubject subject) { } - protected abstract string Identifier { get; } - public TSubject Subject { get; } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where T : TSubject { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } - } - public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - public System.TimeSpan? Subject { get; } - public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - } - public class StringAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - } - public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAll(params string[] values) { } - public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAny(params string[] values) { } - public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - } - public enum TimeSpanCondition - { - MoreThan = 0, - AtLeast = 1, - Exactly = 2, - Within = 3, - LessThan = 4, - } -} -namespace FluentAssertions.Reflection -{ - public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public AssemblyAssertions(System.Reflection.Assembly assembly) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Specialized -{ - public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions - { - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - } - public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> - where TTask : System.Threading.Tasks.Task - where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - { - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertions - { - protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } - protected abstract void InvokeSubject(); - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> - where TException : System.Exception - { - public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } - public TException And { get; } - protected override string Identifier { get; } - public TException Which { get; } - public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class ExecutionTime - { - public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } - public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - } - public class ExecutionTimeAssertions - { - public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> - { - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - } - public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> - { - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } - } - public interface IExtractExceptions - { - System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception; - } - public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime - { - public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } - } - public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - } - public class TaskCompletionSourceAssertions - { - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Streams -{ - public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - } - public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions - where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class StreamAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(System.IO.Stream stream) { } - } - public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.IO.Stream - where TAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(TSubject stream) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Types -{ - public static class AllTypes - { - public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } - } - public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } - protected override string Identifier { get; } - } - public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Reflection.MemberInfo - where TAssertions : FluentAssertions.Types.MemberInfoAssertions - { - protected MemberInfoAssertions(TSubject subject) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - } - public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions - where TSubject : System.Reflection.MethodBase - where TAssertions : FluentAssertions.Types.MethodBaseAssertions - { - protected MethodBaseAssertions(TSubject subject) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - } - public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } - } - public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } - public MethodInfoSelector(System.Type type) { } - public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } - public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } - public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } - public System.Reflection.MethodInfo[] ToArray() { } - } - public class MethodInfoSelectorAssertions - { - public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectMethods { get; } - public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions - { - public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } - public PropertyInfoSelector(System.Type type) { } - public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } - public FluentAssertions.Types.PropertyInfoSelector OfType() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public System.Reflection.PropertyInfo[] ToArray() { } - } - public class PropertyInfoSelectorAssertions - { - public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectProperties { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - } - public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public TypeAssertions(System.Type type) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) - where TInterface : class { } - } - public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public TypeSelector(System.Collections.Generic.IEnumerable types) { } - public TypeSelector(System.Type type) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ThatAreClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } - public FluentAssertions.Types.TypeSelector ThatImplement() { } - public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } - public System.Type[] ToArray() { } - public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } - public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } - } - public class TypeSelectorAssertions - { - public TypeSelectorAssertions(params System.Type[] types) { } - public System.Collections.Generic.IEnumerable Subject { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Xml -{ - public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } - } - public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XDocumentAssertions(System.Xml.Linq.XDocument document) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - } - public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XElementAssertions(System.Xml.Linq.XElement xElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } - } - public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Xml.XmlNode - where TAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(TSubject xmlNode) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlNodeFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} \ No newline at end of file diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt deleted file mode 100644 index 0e6dc7fce7..0000000000 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt +++ /dev/null @@ -1,2690 +0,0 @@ -[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName="")] -namespace FluentAssertions -{ - public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions - { - public AggregateExceptionExtractor() { } - public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception { } - } - public class AndConstraint - { - public AndConstraint(T parentConstraint) { } - public T And { get; } - } - public class AndWhichConstraint : FluentAssertions.AndConstraint - { - public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } - public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } - public TMatchedElement Subject { get; } - public TMatchedElement Which { get; } - } - public static class AssertionExtensions - { - public static TTo As(this object subject) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Action Enumerating(this System.Func enumerable) { } - public static System.Action Enumerating(this System.Func> enumerable) { } - public static System.Action Enumerating(this T subject, System.Func> enumerable) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static System.Action Invoking(this T subject, System.Action action) { } - public static System.Func Invoking(this T subject, System.Func action) { } - public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } - public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } - public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } - public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } - public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } - public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } - public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } - public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } - public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } - public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } - public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } - public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } - public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } - public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } - public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } - public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } - public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } - public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } - public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } - public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } - public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } - public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } - public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } - public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } - public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } - public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } - public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } - public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) - where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.GuidAssertions _) - where TAssertions : FluentAssertions.Primitives.GuidAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } - public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } - public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } - public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } - public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Numeric.NumericAssertions _) - where TSubject : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.EnumAssertions _) - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } - public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) - where TCollection : System.Collections.Generic.IEnumerable> { } - } - public static class AssertionOptions - { - public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } - public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } - public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } - } - public static class AsyncAssertionsExtensions - { - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - } - public static class AtLeast - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class AtMost - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class CallerIdentifier - { - public static System.Action Logger { get; set; } - public static string DetermineCallerIdentity() { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class CustomAssertionAttribute : System.Attribute - { - public CustomAssertionAttribute() { } - } - public static class DataColumnCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataRowAssertionExtensions - { - public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) - where TDataRow : System.Data.DataRow { } - } - public static class DataRowCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataSetAssertionExtensions - { - public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) - where TDataSet : System.Data.DataSet { } - } - public static class DataTableAssertionExtensions - { - public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) - where TDataTable : System.Data.DataTable { } - } - public static class DataTableCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class EnumAssertionsExtensions - { - public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) - where TEnum : struct, System.Enum { } - public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) - where TEnum : struct, System.Enum { } - } - public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public EquivalencyPlan() { } - public void Add() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void AddAfter() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Clear() { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public void Insert() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void InsertBefore() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Remove() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } - public void Reset() { } - } - public static class Exactly - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class ExceptionAssertionsExtensions - { - public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - } - public static class FluentActions - { - public static System.Func Awaiting(System.Func action) { } - public static System.Func> Awaiting(System.Func> func) { } - public static System.Action Enumerating(System.Func enumerable) { } - public static System.Action Enumerating(System.Func> enumerable) { } - public static System.Action Invoking(System.Action action) { } - public static System.Func Invoking(System.Func func) { } - } - public static class LessThan - { - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class MoreThan - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class NumericAssertionsExtensions - { - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - } - public static class ObjectAssertionsExtensions - { - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - } - public abstract class OccurrenceConstraint - { - protected OccurrenceConstraint(int expectedCount) { } - } - public static class TypeEnumerableExtensions - { - public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } - public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } - } - public static class TypeExtensions - { - public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } - } - public static class XmlAssertionExtensions - { - public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } - public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } - } -} -namespace FluentAssertions.Collections -{ - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> - { - public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public GenericCollectionAssertions(TCollection actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions - { - public GenericCollectionAssertions(TCollection actualValue) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } - public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(params T[] elements) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } - public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where TKey : class { } - public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } - public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } - public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } - public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } - public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } - public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } - public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - { - public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public StringCollectionAssertions(TCollection actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.StringCollectionAssertions - { - public StringCollectionAssertions(TCollection actualValue) { } - public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } - public FluentAssertions.AndConstraint Equal(params string[] expected) { } - public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> - { - public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - } - public class WhoseValueConstraint : FluentAssertions.AndConstraint - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } - public TValue WhoseValue { get; } - } -} -namespace FluentAssertions.Common -{ - public enum CSharpAccessModifier - { - Public = 0, - Private = 1, - Protected = 2, - Internal = 3, - ProtectedInternal = 4, - InvalidForCSharp = 5, - PrivateProtected = 6, - } - public class Configuration - { - public Configuration(FluentAssertions.Common.IConfigurationStore store) { } - public string TestFrameworkName { get; set; } - public string ValueFormatterAssembly { get; set; } - public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } - public static FluentAssertions.Common.Configuration Current { get; } - } - public static class DateTimeExtensions - { - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } - } - public interface IClock - { - void Delay(System.TimeSpan timeToDelay); - System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); - FluentAssertions.Common.ITimer StartTimer(); - } - public interface IConfigurationStore - { - string GetSetting(string name); - } - public interface IReflector - { - System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); - } - public interface ITimer : System.IDisposable - { - System.TimeSpan Elapsed { get; } - } - public static class Services - { - public static FluentAssertions.Common.Configuration Configuration { get; } - public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } - public static FluentAssertions.Common.IReflector Reflector { get; set; } - public static System.Action ThrowException { get; set; } - public static void ResetToDefaults() { } - } - public delegate FluentAssertions.Common.ITimer StartTimer(); - public enum ValueFormatterDetectionMode - { - Disabled = 0, - Specific = 1, - Scan = 2, - } -} -namespace FluentAssertions.Data -{ - public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public DataColumnAssertions(System.Data.DataColumn dataColumn) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataRow : System.Data.DataRow - { - public DataRowAssertions(TDataRow dataRow) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - } - public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataSet : System.Data.DataSet - { - public DataSetAssertions(TDataSet dataSet) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } - public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } - } - public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataTable : System.Data.DataTable - { - public DataTableAssertions(TDataTable dataTable) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } - } - public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - { - FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); - } - public enum RowMatchMode - { - Index = 0, - PrimaryKey = 1, - } -} -namespace FluentAssertions.Equivalency -{ - public class Comparands - { - public Comparands() { } - public Comparands(object subject, object expectation, System.Type compileTimeType) { } - public System.Type CompileTimeType { get; set; } - public object Expectation { get; set; } - public System.Type RuntimeType { get; } - public object Subject { get; set; } - public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public override string ToString() { } - } - public class ConversionSelector - { - public ConversionSelector() { } - public FluentAssertions.Equivalency.ConversionSelector Clone() { } - public void Exclude(System.Linq.Expressions.Expression> predicate) { } - public void Include(System.Linq.Expressions.Expression> predicate) { } - public void IncludeAll() { } - public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } - public override string ToString() { } - } - public enum CyclicReferenceHandling - { - Ignore = 0, - ThrowException = 1, - } - public enum EnumEquivalencyHandling - { - ByValue = 0, - ByName = 1, - } - public enum EqualityStrategy - { - Equals = 0, - Members = 1, - ForceEquals = 2, - ForceMembers = 3, - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - public EquivalencyAssertionOptions() { } - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> - { - public EquivalencyAssertionOptions() { } - public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } - } - public enum EquivalencyResult - { - ContinueWithNext = 0, - AssertionCompleted = 1, - } - public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - protected EquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext - { - public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.INode CurrentNode { get; } - public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - public FluentAssertions.Execution.Reason Reason { get; set; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } - public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } - public bool IsCyclicReference(object expectation) { } - public override string ToString() { } - } - public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator - { - public EquivalencyValidator() { } - public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } - public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } - } - public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; set; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public delegate string GetSubjectId(); - public interface IAssertionContext - { - string Because { get; set; } - object[] BecauseArgs { get; set; } - TSubject Expectation { get; } - FluentAssertions.Equivalency.INode SelectedNode { get; } - TSubject Subject { get; } - } - public interface IEquivalencyAssertionOptions - { - bool AllowInfiniteRecursion { get; } - bool CompareRecordsByValue { get; } - FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } - FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } - bool ExcludeNonBrowsableOnExpectation { get; } - bool IgnoreNonBrowsableOnSubject { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - bool IsRecursive { get; } - System.Collections.Generic.IEnumerable MatchingRules { get; } - FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - System.Collections.Generic.IEnumerable SelectionRules { get; } - FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - bool UseRuntimeTyping { get; } - System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } - FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); - } - public interface IEquivalencyStep - { - FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public interface IEquivalencyValidationContext - { - FluentAssertions.Equivalency.INode CurrentNode { get; } - FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - FluentAssertions.Execution.Reason Reason { get; } - FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); - FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); - bool IsCyclicReference(object expectation); - } - public interface IEquivalencyValidator - { - void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); - } - public interface IMember : FluentAssertions.Equivalency.INode - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - bool IsBrowsable { get; } - System.Type ReflectedType { get; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - object GetValue(object obj); - } - public interface IMemberInfo - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - string Name { get; } - string Path { get; set; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - System.Type Type { get; } - } - public interface IMemberMatchingRule - { - FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); - } - public interface IMemberSelectionRule - { - bool IncludesMembers { get; } - System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); - } - public interface INode - { - int Depth { get; } - string Description { get; } - FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } - bool IsRoot { get; } - string Name { get; set; } - string Path { get; } - string PathAndName { get; } - bool RootIsCollection { get; } - System.Type Type { get; } - } - public interface IObjectInfo - { - System.Type CompileTimeType { get; } - string Path { get; set; } - System.Type RuntimeType { get; } - System.Type Type { get; } - } - public interface IOrderingRule - { - FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); - } - public static class MemberFactory - { - public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } - } - public class MemberSelectionContext - { - public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - public System.Type Type { get; } - } - [System.Flags] - public enum MemberVisibility - { - None = 0, - Internal = 1, - Public = 2, - } - public class Node : FluentAssertions.Equivalency.INode - { - public Node() { } - public int Depth { get; } - public virtual string Description { get; } - public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } - public bool IsRoot { get; } - public string Name { get; set; } - public string Path { get; set; } - public string PathAndName { get; } - public bool RootIsCollection { get; set; } - public System.Type Type { get; set; } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public override string ToString() { } - public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } - public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } - public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } - } - public enum OrderStrictness - { - Strict = 0, - NotStrict = 1, - Irrelevant = 2, - } - public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public OrderingRuleCollection() { } - public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } - public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } - } - public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public bool CompareRecordsByValue { get; } - public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] - protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf AllowingInfiniteRecursion() { } - public TSelf ComparingByMembers(System.Type type) { } - public TSelf ComparingByMembers() { } - public TSelf ComparingByValue(System.Type type) { } - public TSelf ComparingByValue() { } - public TSelf ComparingEnumsByName() { } - public TSelf ComparingEnumsByValue() { } - public TSelf ComparingRecordsByMembers() { } - public TSelf ComparingRecordsByValue() { } - public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } - public TSelf ExcludingFields() { } - public TSelf ExcludingMissingMembers() { } - public TSelf ExcludingNestedObjects() { } - public TSelf ExcludingNonBrowsableMembers() { } - public TSelf ExcludingProperties() { } - public TSelf IgnoringCyclicReferences() { } - public TSelf IgnoringNonBrowsableMembersOnSubject() { } - public TSelf Including(System.Linq.Expressions.Expression> predicate) { } - public TSelf IncludingAllDeclaredProperties() { } - public TSelf IncludingAllRuntimeProperties() { } - public TSelf IncludingFields() { } - public TSelf IncludingInternalFields() { } - public TSelf IncludingInternalProperties() { } - public TSelf IncludingNestedObjects() { } - public TSelf IncludingProperties() { } - public TSelf RespectingDeclaredTypes() { } - public TSelf RespectingRuntimeTypes() { } - public TSelf ThrowingOnMissingMembers() { } - public override string ToString() { } - public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } - public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } - public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } - public TSelf Using() - where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } - public TSelf WithAutoConversion() { } - public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithStrictOrdering() { } - public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } - public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public void WithoutMatchingRules() { } - public void WithoutSelectionRules() { } - public TSelf WithoutStrictOrdering() { } - public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public class Restriction - { - public Restriction(TSelf options, System.Action> action) { } - public TSelf When(System.Linq.Expressions.Expression> predicate) { } - public TSelf WhenTypeIs() - where TMemberType : TMember { } - } - } - public static class SubjectInfoExtensions - { - public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - } -} -namespace FluentAssertions.Equivalency.Steps -{ - public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AutoConversionStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataColumnEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRelationEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataSetEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataTableEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DictionaryEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumEqualityStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericDictionaryEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericEnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ReferenceEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public RunAllUserStepsEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public SimpleEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StringEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StructuralEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ValueTypeEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XAttributeEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XDocumentEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XElementEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } -} -namespace FluentAssertions.Equivalency.Tracing -{ - public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); - public interface ITraceWriter - { - System.IDisposable AddBlock(string trace); - void AddSingle(string trace); - string ToString(); - } - public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter - { - public StringBuilderTraceWriter() { } - public System.IDisposable AddBlock(string trace) { } - public void AddSingle(string trace) { } - public override string ToString() { } - } - public class Tracer - { - public override string ToString() { } - public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - } -} -namespace FluentAssertions.Execution -{ - [System.Serializable] - public class AssertionFailedException : System.Exception - { - public AssertionFailedException(string message) { } - protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public AssertionScope() { } - public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } - public AssertionScope(System.Lazy context) { } - public AssertionScope(string context) { } - public string CallerIdentity { get; } - public System.Lazy Context { get; set; } - public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } - public static FluentAssertions.Execution.AssertionScope Current { get; } - public void AddNonReportable(string key, object value) { } - public void AddPreFormattedFailure(string formattedFailureMessage) { } - public void AddReportable(string key, System.Func valueFunc) { } - public void AddReportable(string key, string value) { } - public void AppendTracing(string tracingBlock) { } - public void AssumeSingleCaller() { } - public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } - public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } - public T Get(string key) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public bool HasFailures() { } - public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } - } - public class Continuation - { - public FluentAssertions.Execution.IAssertionScope Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } - } - public class ContinuationOfGiven - { - public FluentAssertions.Execution.GivenSelector Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } - } - public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } - } - public static class Execute - { - public static FluentAssertions.Execution.AssertionScope Assertion { get; } - } - public class FailReason - { - public FailReason(string message, params object[] args) { } - public object[] Args { get; } - public string Message { get; } - } - public class GivenSelector - { - public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - } - public interface IAssertionScope : System.IDisposable - { - FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); - FluentAssertions.Execution.Continuation ClearExpectation(); - string[] Discard(); - FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); - FluentAssertions.Execution.Continuation FailWith(string message); - FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); - FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); - FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); - FluentAssertions.Execution.GivenSelector Given(System.Func selector); - FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); - FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); - } - public interface IAssertionStrategy - { - System.Collections.Generic.IEnumerable FailureMessages { get; } - System.Collections.Generic.IEnumerable DiscardFailures(); - void HandleFailure(string message); - void ThrowIfAny(System.Collections.Generic.IDictionary context); - } - public interface ICloneable2 - { - object Clone(); - } - public class Reason - { - public Reason(string formattedMessage, object[] arguments) { } - public object[] Arguments { get; set; } - public string FormattedMessage { get; set; } - } -} -namespace FluentAssertions.Extensions -{ - public static class FluentDateTimeExtensions - { - public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } - public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } - public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } - public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } - public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime April(this int day, int year) { } - public static System.DateTime AsLocal(this System.DateTime dateTime) { } - public static System.DateTime AsUtc(this System.DateTime dateTime) { } - public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } - public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTime August(this int day, int year) { } - public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime December(this int day, int year) { } - public static System.DateTime February(this int day, int year) { } - public static System.DateTime January(this int day, int year) { } - public static System.DateTime July(this int day, int year) { } - public static System.DateTime June(this int day, int year) { } - public static System.DateTime March(this int day, int year) { } - public static System.DateTime May(this int day, int year) { } - public static int Microsecond(this System.DateTime self) { } - public static int Microsecond(this System.DateTimeOffset self) { } - public static int Nanosecond(this System.DateTime self) { } - public static int Nanosecond(this System.DateTimeOffset self) { } - public static System.DateTime November(this int day, int year) { } - public static System.DateTime October(this int day, int year) { } - public static System.DateTime September(this int day, int year) { } - public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } - } - public static class FluentTimeSpanExtensions - { - public const long TicksPerMicrosecond = 10; - public const double TicksPerNanosecond = 0.01D; - public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } - public static System.TimeSpan Days(this double days) { } - public static System.TimeSpan Days(this int days) { } - public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } - public static System.TimeSpan Hours(this double hours) { } - public static System.TimeSpan Hours(this int hours) { } - public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } - public static int Microseconds(this System.TimeSpan self) { } - public static System.TimeSpan Microseconds(this int microseconds) { } - public static System.TimeSpan Microseconds(this long microseconds) { } - public static System.TimeSpan Milliseconds(this double milliseconds) { } - public static System.TimeSpan Milliseconds(this int milliseconds) { } - public static System.TimeSpan Minutes(this double minutes) { } - public static System.TimeSpan Minutes(this int minutes) { } - public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } - public static int Nanoseconds(this System.TimeSpan self) { } - public static System.TimeSpan Nanoseconds(this int nanoseconds) { } - public static System.TimeSpan Nanoseconds(this long nanoseconds) { } - public static System.TimeSpan Seconds(this double seconds) { } - public static System.TimeSpan Seconds(this int seconds) { } - public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } - public static System.TimeSpan Ticks(this int ticks) { } - public static System.TimeSpan Ticks(this long ticks) { } - public static double TotalMicroseconds(this System.TimeSpan self) { } - public static double TotalNanoseconds(this System.TimeSpan self) { } - } -} -namespace FluentAssertions.Formatting -{ - public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AggregateExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AttributeBasedFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DateTimeOffsetValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DecimalValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DefaultValueFormatter() { } - protected virtual int SpacesPerIndentionLevel { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } - protected virtual string TypeDisplayName(System.Type type) { } - } - public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DictionaryValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DoubleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumValueFormatter() { } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumerableValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); - public class FormattedObjectGraph - { - public FormattedObjectGraph(int maxLines) { } - public int LineCount { get; } - public static int SpacesPerIndentation { get; } - public void AddFragment(string fragment) { } - public void AddFragmentOnNewLine(string fragment) { } - public void AddLine(string line) { } - public override string ToString() { } - public System.IDisposable WithIndentation() { } - } - public static class Formatter - { - public static System.Collections.Generic.IEnumerable Formatters { get; } - public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } - } - public class FormattingContext - { - public FormattingContext() { } - public bool UseLineBreaks { get; set; } - } - public class FormattingOptions - { - public FormattingOptions() { } - public int MaxDepth { get; set; } - public int MaxLines { get; set; } - public bool UseLineBreaks { get; set; } - } - public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public GuidValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public interface IValueFormatter - { - bool CanHandle(object value); - void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); - } - public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class MaxLinesExceededException : System.Exception - { - public MaxLinesExceededException() { } - public MaxLinesExceededException(string message) { } - public MaxLinesExceededException(string message, System.Exception innerException) { } - } - public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter - { - public MultidimensionalArrayFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public NullValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PredicateLambdaExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PropertyInfoFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SingleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public StringValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TaskFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TimeSpanValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class ValueFormatterAttribute : System.Attribute - { - public ValueFormatterAttribute() { } - } - public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XAttributeValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XDocumentValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XElementValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlReaderValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} -namespace FluentAssertions.Numeric -{ - public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> - { - public ComparableTypeAssertions(System.IComparable value) { } - } - public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> - where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions - { - public ComparableTypeAssertions(System.IComparable value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> - where T : struct, System.IComparable - { - public NullableNumericAssertions(T? value) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions - { - public NullableNumericAssertions(T? value) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> - where T : struct, System.IComparable - { - public NumericAssertions(T value) { } - } - public class NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions - { - public NumericAssertions(T value) { } - public T? Subject { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Primitives -{ - public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - } - public class BooleanAssertions - where TAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - public bool? Subject { get; } - public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - } - public class DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - public System.DateTime? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - } - public class DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - public System.DateTimeOffset? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class DateTimeRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> - where TEnum : struct, System.Enum - { - public EnumAssertions(TEnum subject) { } - } - public class EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions - { - public EnumAssertions(TEnum subject) { } - public TEnum? Subject { get; } - public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } - } - public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - } - public class GuidAssertions - where TAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - public System.Guid? Subject { get; } - public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions - where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> - where TEnum : struct, System.Enum - { - public NullableEnumAssertions(TEnum? subject) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions - { - public NullableEnumAssertions(TEnum? subject) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions - where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(object value) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(TSubject value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public abstract class ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - protected ReferenceTypeAssertions(TSubject subject) { } - protected abstract string Identifier { get; } - public TSubject Subject { get; } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where T : TSubject { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } - } - public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - public System.TimeSpan? Subject { get; } - public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - } - public class StringAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - } - public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAll(params string[] values) { } - public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAny(params string[] values) { } - public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - } - public enum TimeSpanCondition - { - MoreThan = 0, - AtLeast = 1, - Exactly = 2, - Within = 3, - LessThan = 4, - } -} -namespace FluentAssertions.Reflection -{ - public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public AssemblyAssertions(System.Reflection.Assembly assembly) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Specialized -{ - public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions - { - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - } - public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> - where TTask : System.Threading.Tasks.Task - where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - { - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertions - { - protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } - protected abstract void InvokeSubject(); - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> - where TException : System.Exception - { - public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } - public TException And { get; } - protected override string Identifier { get; } - public TException Which { get; } - public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class ExecutionTime - { - public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } - public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - } - public class ExecutionTimeAssertions - { - public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> - { - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - } - public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> - { - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } - } - public interface IExtractExceptions - { - System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception; - } - public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime - { - public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } - } - public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - } - public class TaskCompletionSourceAssertions - { - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Streams -{ - public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - } - public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions - where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - protected override string Identifier { get; } - } - public class StreamAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(System.IO.Stream stream) { } - } - public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.IO.Stream - where TAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(TSubject stream) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Types -{ - public static class AllTypes - { - public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } - } - public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } - protected override string Identifier { get; } - } - public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Reflection.MemberInfo - where TAssertions : FluentAssertions.Types.MemberInfoAssertions - { - protected MemberInfoAssertions(TSubject subject) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - } - public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions - where TSubject : System.Reflection.MethodBase - where TAssertions : FluentAssertions.Types.MethodBaseAssertions - { - protected MethodBaseAssertions(TSubject subject) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - } - public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } - } - public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } - public MethodInfoSelector(System.Type type) { } - public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } - public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } - public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } - public System.Reflection.MethodInfo[] ToArray() { } - } - public class MethodInfoSelectorAssertions - { - public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectMethods { get; } - public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions - { - public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } - public PropertyInfoSelector(System.Type type) { } - public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } - public FluentAssertions.Types.PropertyInfoSelector OfType() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public System.Reflection.PropertyInfo[] ToArray() { } - } - public class PropertyInfoSelectorAssertions - { - public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectProperties { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - } - public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public TypeAssertions(System.Type type) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) - where TInterface : class { } - } - public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public TypeSelector(System.Collections.Generic.IEnumerable types) { } - public TypeSelector(System.Type type) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ThatAreClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } - public FluentAssertions.Types.TypeSelector ThatImplement() { } - public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } - public System.Type[] ToArray() { } - public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } - public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } - } - public class TypeSelectorAssertions - { - public TypeSelectorAssertions(params System.Type[] types) { } - public System.Collections.Generic.IEnumerable Subject { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Xml -{ - public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } - } - public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XDocumentAssertions(System.Xml.Linq.XDocument document) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - } - public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XElementAssertions(System.Xml.Linq.XElement xElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } - } - public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Xml.XmlNode - where TAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(TSubject xmlNode) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlNodeFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} \ No newline at end of file diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt deleted file mode 100644 index 7528828cde..0000000000 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt +++ /dev/null @@ -1,2740 +0,0 @@ -[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName="")] -namespace FluentAssertions -{ - public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions - { - public AggregateExceptionExtractor() { } - public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception { } - } - public class AndConstraint - { - public AndConstraint(T parentConstraint) { } - public T And { get; } - } - public class AndWhichConstraint : FluentAssertions.AndConstraint - { - public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } - public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } - public TMatchedElement Subject { get; } - public TMatchedElement Which { get; } - } - public static class AssertionExtensions - { - public static TTo As(this object subject) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func Awaiting(this T subject, System.Func action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Func> Awaiting(this T subject, System.Func> action) { } - public static System.Action Enumerating(this System.Func enumerable) { } - public static System.Action Enumerating(this System.Func> enumerable) { } - public static System.Action Enumerating(this T subject, System.Func> enumerable) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } - public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } - public static System.Action Invoking(this T subject, System.Action action) { } - public static System.Func Invoking(this T subject, System.Func action) { } - public static FluentAssertions.Events.IMonitor Monitor(this T eventSource, System.Func utcNow = null) { } - public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } - public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } - public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } - public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } - public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } - public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } - public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } - public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } - public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } - public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } - public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } - public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } - public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } - public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } - public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } - public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } - public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } - public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } - public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } - public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } - public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } - public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } - public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } - public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } - public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } - public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } - public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } - public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } - public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } - public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } - public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) - where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.GuidAssertions _) - where TAssertions : FluentAssertions.Primitives.GuidAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } - public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } - public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } - public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } - public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } - public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Numeric.NumericAssertions _) - where TSubject : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.EnumAssertions _) - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions { } - [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + - "ly following \'And\'", true)] - public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } - public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } - public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) - where TCollection : System.Collections.Generic.IEnumerable> { } - } - public static class AssertionOptions - { - public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } - public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } - public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } - } - public static class AsyncAssertionsExtensions - { - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } - } - public static class AtLeast - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class AtMost - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class CallerIdentifier - { - public static System.Action Logger { get; set; } - public static string DetermineCallerIdentity() { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class CustomAssertionAttribute : System.Attribute - { - public CustomAssertionAttribute() { } - } - public static class DataColumnCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataRowAssertionExtensions - { - public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) - where TDataRow : System.Data.DataRow { } - } - public static class DataRowCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class DataSetAssertionExtensions - { - public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) - where TDataSet : System.Data.DataSet { } - } - public static class DataTableAssertionExtensions - { - public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) - where TDataTable : System.Data.DataTable { } - } - public static class DataTableCollectionAssertionExtensions - { - public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } - } - public static class EnumAssertionsExtensions - { - public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) - where TEnum : struct, System.Enum { } - public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) - where TEnum : struct, System.Enum { } - } - public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public EquivalencyPlan() { } - public void Add() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void AddAfter() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Clear() { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public void Insert() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void InsertBefore() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } - public void Remove() - where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } - public void Reset() { } - } - public static class EventRaisingExtensions - { - public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, System.Linq.Expressions.Expression> predicate) { } - public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, params System.Linq.Expressions.Expression>[] predicates) { } - public static FluentAssertions.Events.IEventRecording WithSender(this FluentAssertions.Events.IEventRecording eventRecording, object expectedSender) { } - } - public static class Exactly - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class ExceptionAssertionsExtensions - { - public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) - where TException : System.Exception - where TInnerException : System.Exception { } - public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) - where TException : System.ArgumentException { } - } - public static class FluentActions - { - public static System.Func Awaiting(System.Func action) { } - public static System.Func> Awaiting(System.Func> func) { } - public static System.Action Enumerating(System.Func enumerable) { } - public static System.Action Enumerating(System.Func> enumerable) { } - public static System.Action Invoking(System.Action action) { } - public static System.Func Invoking(System.Func func) { } - } - public static class LessThan - { - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class MoreThan - { - public static FluentAssertions.OccurrenceConstraint Once() { } - public static FluentAssertions.OccurrenceConstraint Thrice() { } - public static FluentAssertions.OccurrenceConstraint Times(int expected) { } - public static FluentAssertions.OccurrenceConstraint Twice() { } - } - public static class NumericAssertionsExtensions - { - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } - } - public static class ObjectAssertionsExtensions - { - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } - public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } - } - public abstract class OccurrenceConstraint - { - protected OccurrenceConstraint(int expectedCount) { } - } - public static class TypeEnumerableExtensions - { - public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) - where TAttribute : System.Attribute { } - public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } - public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } - public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } - public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } - } - public static class TypeExtensions - { - public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } - public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } - public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } - } - public static class XmlAssertionExtensions - { - public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } - public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } - } -} -namespace FluentAssertions.Collections -{ - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> - { - public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public GenericCollectionAssertions(TCollection actualValue) { } - } - public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions - { - public GenericCollectionAssertions(TCollection actualValue) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } - public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(params T[] elements) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } - public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where TKey : class { } - public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } - public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } - public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } - protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - } - public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public GenericDictionaryAssertions(TCollection keyValuePairs) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } - public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } - public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } - public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } - public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) - where T : System.Collections.Generic.IEnumerable> { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - { - public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public StringCollectionAssertions(TCollection actualValue) { } - } - public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.StringCollectionAssertions - { - public StringCollectionAssertions(TCollection actualValue) { } - public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } - public FluentAssertions.AndConstraint Equal(params string[] expected) { } - public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> - { - public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> - where TCollection : System.Collections.Generic.IEnumerable - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - } - public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions - where TCollection : System.Collections.Generic.IEnumerable - where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions - { - public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } - } - public class WhoseValueConstraint : FluentAssertions.AndConstraint - where TCollection : System.Collections.Generic.IEnumerable> - where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions - { - public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } - public TValue WhoseValue { get; } - } -} -namespace FluentAssertions.Common -{ - public enum CSharpAccessModifier - { - Public = 0, - Private = 1, - Protected = 2, - Internal = 3, - ProtectedInternal = 4, - InvalidForCSharp = 5, - PrivateProtected = 6, - } - public class Configuration - { - public Configuration(FluentAssertions.Common.IConfigurationStore store) { } - public string TestFrameworkName { get; set; } - public string ValueFormatterAssembly { get; set; } - public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } - public static FluentAssertions.Common.Configuration Current { get; } - } - public static class DateTimeExtensions - { - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } - public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } - } - public interface IClock - { - void Delay(System.TimeSpan timeToDelay); - System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); - FluentAssertions.Common.ITimer StartTimer(); - } - public interface IConfigurationStore - { - string GetSetting(string name); - } - public interface IReflector - { - System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); - } - public interface ITimer : System.IDisposable - { - System.TimeSpan Elapsed { get; } - } - public static class Services - { - public static FluentAssertions.Common.Configuration Configuration { get; } - public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } - public static FluentAssertions.Common.IReflector Reflector { get; set; } - public static System.Action ThrowException { get; set; } - public static void ResetToDefaults() { } - } - public delegate FluentAssertions.Common.ITimer StartTimer(); - public enum ValueFormatterDetectionMode - { - Disabled = 0, - Specific = 1, - Scan = 2, - } -} -namespace FluentAssertions.Data -{ - public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public DataColumnAssertions(System.Data.DataColumn dataColumn) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataRow : System.Data.DataRow - { - public DataRowAssertions(TDataRow dataRow) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - } - public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataSet : System.Data.DataSet - { - public DataSetAssertions(TDataSet dataSet) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } - public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } - } - public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDataTable : System.Data.DataTable - { - public DataTableAssertions(TDataTable dataTable) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } - public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } - } - public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - { - FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); - FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); - FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); - FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); - } - public enum RowMatchMode - { - Index = 0, - PrimaryKey = 1, - } -} -namespace FluentAssertions.Equivalency -{ - public class Comparands - { - public Comparands() { } - public Comparands(object subject, object expectation, System.Type compileTimeType) { } - public System.Type CompileTimeType { get; set; } - public object Expectation { get; set; } - public System.Type RuntimeType { get; } - public object Subject { get; set; } - public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public override string ToString() { } - } - public class ConversionSelector - { - public ConversionSelector() { } - public FluentAssertions.Equivalency.ConversionSelector Clone() { } - public void Exclude(System.Linq.Expressions.Expression> predicate) { } - public void Include(System.Linq.Expressions.Expression> predicate) { } - public void IncludeAll() { } - public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } - public override string ToString() { } - } - public enum CyclicReferenceHandling - { - Ignore = 0, - ThrowException = 1, - } - public enum EnumEquivalencyHandling - { - ByValue = 0, - ByName = 1, - } - public enum EqualityStrategy - { - Equals = 0, - Members = 1, - ForceEquals = 2, - ForceMembers = 3, - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - public EquivalencyAssertionOptions() { } - } - public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> - { - public EquivalencyAssertionOptions() { } - public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } - public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } - } - public enum EquivalencyResult - { - ContinueWithNext = 0, - AssertionCompleted = 1, - } - public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - protected EquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext - { - public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.INode CurrentNode { get; } - public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - public FluentAssertions.Execution.Reason Reason { get; set; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } - public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } - public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } - public bool IsCyclicReference(object expectation) { } - public override string ToString() { } - } - public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator - { - public EquivalencyValidator() { } - public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } - public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } - } - public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; set; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public delegate string GetSubjectId(); - public interface IAssertionContext - { - string Because { get; set; } - object[] BecauseArgs { get; set; } - TSubject Expectation { get; } - FluentAssertions.Equivalency.INode SelectedNode { get; } - TSubject Subject { get; } - } - public interface IEquivalencyAssertionOptions - { - bool AllowInfiniteRecursion { get; } - bool CompareRecordsByValue { get; } - FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } - FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } - bool ExcludeNonBrowsableOnExpectation { get; } - bool IgnoreNonBrowsableOnSubject { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - bool IsRecursive { get; } - System.Collections.Generic.IEnumerable MatchingRules { get; } - FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - System.Collections.Generic.IEnumerable SelectionRules { get; } - FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - bool UseRuntimeTyping { get; } - System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } - FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); - } - public interface IEquivalencyStep - { - FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); - } - public interface IEquivalencyValidationContext - { - FluentAssertions.Equivalency.INode CurrentNode { get; } - FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } - FluentAssertions.Execution.Reason Reason { get; } - FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } - FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); - FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); - FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); - bool IsCyclicReference(object expectation); - } - public interface IEquivalencyValidator - { - void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); - } - public interface IMember : FluentAssertions.Equivalency.INode - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - bool IsBrowsable { get; } - System.Type ReflectedType { get; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - object GetValue(object obj); - } - public interface IMemberInfo - { - System.Type DeclaringType { get; } - FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - string Name { get; } - string Path { get; set; } - FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - System.Type Type { get; } - } - public interface IMemberMatchingRule - { - FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); - } - public interface IMemberSelectionRule - { - bool IncludesMembers { get; } - System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); - } - public interface INode - { - int Depth { get; } - string Description { get; } - FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } - bool IsRoot { get; } - string Name { get; set; } - string Path { get; } - string PathAndName { get; } - bool RootIsCollection { get; } - System.Type Type { get; } - } - public interface IObjectInfo - { - System.Type CompileTimeType { get; } - string Path { get; set; } - System.Type RuntimeType { get; } - System.Type Type { get; } - } - public interface IOrderingRule - { - FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); - } - public static class MemberFactory - { - public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } - } - public class MemberSelectionContext - { - public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } - public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } - public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } - public System.Type Type { get; } - } - [System.Flags] - public enum MemberVisibility - { - None = 0, - Internal = 1, - Public = 2, - } - public class Node : FluentAssertions.Equivalency.INode - { - public Node() { } - public int Depth { get; } - public virtual string Description { get; } - public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } - public bool IsRoot { get; } - public string Name { get; set; } - public string Path { get; set; } - public string PathAndName { get; } - public bool RootIsCollection { get; set; } - public System.Type Type { get; set; } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public override string ToString() { } - public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } - public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } - public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } - } - public enum OrderStrictness - { - Strict = 0, - NotStrict = 1, - Irrelevant = 2, - } - public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public OrderingRuleCollection() { } - public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } - public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } - } - public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode - { - public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } - public System.Type DeclaringType { get; } - public override string Description { get; } - public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } - public bool IsBrowsable { get; } - public System.Type ReflectedType { get; } - public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } - public object GetValue(object obj) { } - } - public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions - where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions - { - protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } - public bool CompareRecordsByValue { get; } - public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } - [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] - protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } - public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } - protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf AllowingInfiniteRecursion() { } - public TSelf ComparingByMembers(System.Type type) { } - public TSelf ComparingByMembers() { } - public TSelf ComparingByValue(System.Type type) { } - public TSelf ComparingByValue() { } - public TSelf ComparingEnumsByName() { } - public TSelf ComparingEnumsByValue() { } - public TSelf ComparingRecordsByMembers() { } - public TSelf ComparingRecordsByValue() { } - public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } - public TSelf ExcludingFields() { } - public TSelf ExcludingMissingMembers() { } - public TSelf ExcludingNestedObjects() { } - public TSelf ExcludingNonBrowsableMembers() { } - public TSelf ExcludingProperties() { } - public TSelf IgnoringCyclicReferences() { } - public TSelf IgnoringNonBrowsableMembersOnSubject() { } - public TSelf Including(System.Linq.Expressions.Expression> predicate) { } - public TSelf IncludingAllDeclaredProperties() { } - public TSelf IncludingAllRuntimeProperties() { } - public TSelf IncludingFields() { } - public TSelf IncludingInternalFields() { } - public TSelf IncludingInternalProperties() { } - public TSelf IncludingNestedObjects() { } - public TSelf IncludingProperties() { } - public TSelf RespectingDeclaredTypes() { } - public TSelf RespectingRuntimeTypes() { } - public TSelf ThrowingOnMissingMembers() { } - public override string ToString() { } - public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } - public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } - public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } - public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } - public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } - public TSelf Using() - where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } - public TSelf WithAutoConversion() { } - public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithStrictOrdering() { } - public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } - public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } - public void WithoutMatchingRules() { } - public void WithoutSelectionRules() { } - public TSelf WithoutStrictOrdering() { } - public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } - public class Restriction - { - public Restriction(TSelf options, System.Action> action) { } - public TSelf When(System.Linq.Expressions.Expression> predicate) { } - public TSelf WhenTypeIs() - where TMemberType : TMember { } - } - } - public static class SubjectInfoExtensions - { - public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } - } -} -namespace FluentAssertions.Equivalency.Steps -{ - public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public AutoConversionStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public ConstraintEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataColumnEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRelationEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowCollectionEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataRowEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataSetEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DataTableEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public DictionaryEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumEqualityStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - public override string ToString() { } - } - public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericDictionaryEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public GenericEnumerableEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ReferenceEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public RunAllUserStepsEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public SimpleEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StringEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public StructuralEqualityEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep - { - public ValueTypeEquivalencyStep() { } - public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XAttributeEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XDocumentEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } - public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep - { - public XElementEquivalencyStep() { } - protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } - } -} -namespace FluentAssertions.Equivalency.Tracing -{ - public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); - public interface ITraceWriter - { - System.IDisposable AddBlock(string trace); - void AddSingle(string trace); - string ToString(); - } - public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter - { - public StringBuilderTraceWriter() { } - public System.IDisposable AddBlock(string trace) { } - public void AddSingle(string trace) { } - public override string ToString() { } - } - public class Tracer - { - public override string ToString() { } - public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } - } -} -namespace FluentAssertions.Events -{ - public class EventAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> - { - protected EventAssertions(FluentAssertions.Events.IMonitor monitor) { } - protected override string Identifier { get; } - public void NotRaise(string eventName, string because = "", params object[] becauseArgs) { } - public void NotRaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Events.IEventRecording Raise(string eventName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Events.IEventRecording RaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } - } - public class EventMetadata - { - public EventMetadata(string eventName, System.Type handlerType) { } - public string EventName { get; } - public System.Type HandlerType { get; } - } - public interface IEventRecording : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - System.Type EventHandlerType { get; } - string EventName { get; } - object EventObject { get; } - } - public interface IMonitor : System.IDisposable - { - FluentAssertions.Events.EventMetadata[] MonitoredEvents { get; } - FluentAssertions.Events.OccurredEvent[] OccurredEvents { get; } - T Subject { get; } - void Clear(); - FluentAssertions.Events.IEventRecording GetRecordingFor(string eventName); - FluentAssertions.Events.EventAssertions Should(); - } - public class OccurredEvent - { - public OccurredEvent() { } - public string EventName { get; set; } - public object[] Parameters { get; set; } - public int Sequence { get; set; } - public System.DateTime TimestampUtc { get; set; } - } -} -namespace FluentAssertions.Execution -{ - [System.Serializable] - public class AssertionFailedException : System.Exception - { - public AssertionFailedException(string message) { } - protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public AssertionScope() { } - public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } - public AssertionScope(System.Lazy context) { } - public AssertionScope(string context) { } - public string CallerIdentity { get; } - public System.Lazy Context { get; set; } - public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } - public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } - public static FluentAssertions.Execution.AssertionScope Current { get; } - public void AddNonReportable(string key, object value) { } - public void AddPreFormattedFailure(string formattedFailureMessage) { } - public void AddReportable(string key, System.Func valueFunc) { } - public void AddReportable(string key, string value) { } - public void AppendTracing(string tracingBlock) { } - public void AssumeSingleCaller() { } - public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } - public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } - public T Get(string key) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public bool HasFailures() { } - public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } - } - public class Continuation - { - public FluentAssertions.Execution.IAssertionScope Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } - } - public class ContinuationOfGiven - { - public FluentAssertions.Execution.GivenSelector Then { get; } - public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } - } - public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable - { - public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } - public FluentAssertions.Execution.Continuation ClearExpectation() { } - public string[] Discard() { } - public void Dispose() { } - public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } - public FluentAssertions.Execution.Continuation FailWith(string message) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } - public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } - public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } - } - public static class Execute - { - public static FluentAssertions.Execution.AssertionScope Assertion { get; } - } - public class FailReason - { - public FailReason(string message, params object[] args) { } - public object[] Args { get; } - public string Message { get; } - } - public class GivenSelector - { - public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } - public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } - public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } - public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } - } - public interface IAssertionScope : System.IDisposable - { - FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } - FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); - FluentAssertions.Execution.Continuation ClearExpectation(); - string[] Discard(); - FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); - FluentAssertions.Execution.Continuation FailWith(string message); - FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); - FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); - FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); - FluentAssertions.Execution.GivenSelector Given(System.Func selector); - FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); - FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); - } - public interface IAssertionStrategy - { - System.Collections.Generic.IEnumerable FailureMessages { get; } - System.Collections.Generic.IEnumerable DiscardFailures(); - void HandleFailure(string message); - void ThrowIfAny(System.Collections.Generic.IDictionary context); - } - public interface ICloneable2 - { - object Clone(); - } - public class Reason - { - public Reason(string formattedMessage, object[] arguments) { } - public object[] Arguments { get; set; } - public string FormattedMessage { get; set; } - } -} -namespace FluentAssertions.Extensions -{ - public static class FluentDateTimeExtensions - { - public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } - public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } - public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } - public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } - public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime April(this int day, int year) { } - public static System.DateTime AsLocal(this System.DateTime dateTime) { } - public static System.DateTime AsUtc(this System.DateTime dateTime) { } - public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } - public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } - public static System.DateTime August(this int day, int year) { } - public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } - public static System.DateTime December(this int day, int year) { } - public static System.DateTime February(this int day, int year) { } - public static System.DateTime January(this int day, int year) { } - public static System.DateTime July(this int day, int year) { } - public static System.DateTime June(this int day, int year) { } - public static System.DateTime March(this int day, int year) { } - public static System.DateTime May(this int day, int year) { } - public static int Microsecond(this System.DateTime self) { } - public static int Microsecond(this System.DateTimeOffset self) { } - public static int Nanosecond(this System.DateTime self) { } - public static int Nanosecond(this System.DateTimeOffset self) { } - public static System.DateTime November(this int day, int year) { } - public static System.DateTime October(this int day, int year) { } - public static System.DateTime September(this int day, int year) { } - public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } - } - public static class FluentTimeSpanExtensions - { - public const long TicksPerMicrosecond = 10; - public const double TicksPerNanosecond = 0.01D; - public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } - public static System.TimeSpan Days(this double days) { } - public static System.TimeSpan Days(this int days) { } - public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } - public static System.TimeSpan Hours(this double hours) { } - public static System.TimeSpan Hours(this int hours) { } - public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } - public static int Microseconds(this System.TimeSpan self) { } - public static System.TimeSpan Microseconds(this int microseconds) { } - public static System.TimeSpan Microseconds(this long microseconds) { } - public static System.TimeSpan Milliseconds(this double milliseconds) { } - public static System.TimeSpan Milliseconds(this int milliseconds) { } - public static System.TimeSpan Minutes(this double minutes) { } - public static System.TimeSpan Minutes(this int minutes) { } - public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } - public static int Nanoseconds(this System.TimeSpan self) { } - public static System.TimeSpan Nanoseconds(this int nanoseconds) { } - public static System.TimeSpan Nanoseconds(this long nanoseconds) { } - public static System.TimeSpan Seconds(this double seconds) { } - public static System.TimeSpan Seconds(this int seconds) { } - public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } - public static System.TimeSpan Ticks(this int ticks) { } - public static System.TimeSpan Ticks(this long ticks) { } - public static double TotalMicroseconds(this System.TimeSpan self) { } - public static double TotalNanoseconds(this System.TimeSpan self) { } - } -} -namespace FluentAssertions.Formatting -{ - public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AggregateExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter - { - public AttributeBasedFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DateTimeOffsetValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DecimalValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DefaultValueFormatter() { } - protected virtual int SpacesPerIndentionLevel { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } - protected virtual string TypeDisplayName(System.Type type) { } - } - public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DictionaryValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public DoubleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumValueFormatter() { } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public EnumerableValueFormatter() { } - protected virtual int MaxItems { get; } - public virtual bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExceptionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public ExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); - public class FormattedObjectGraph - { - public FormattedObjectGraph(int maxLines) { } - public int LineCount { get; } - public static int SpacesPerIndentation { get; } - public void AddFragment(string fragment) { } - public void AddFragmentOnNewLine(string fragment) { } - public void AddLine(string line) { } - public override string ToString() { } - public System.IDisposable WithIndentation() { } - } - public static class Formatter - { - public static System.Collections.Generic.IEnumerable Formatters { get; } - public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } - public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } - } - public class FormattingContext - { - public FormattingContext() { } - public bool UseLineBreaks { get; set; } - } - public class FormattingOptions - { - public FormattingOptions() { } - public int MaxDepth { get; set; } - public int MaxLines { get; set; } - public bool UseLineBreaks { get; set; } - } - public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public GuidValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public interface IValueFormatter - { - bool CanHandle(object value); - void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); - } - public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public Int64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class MaxLinesExceededException : System.Exception - { - public MaxLinesExceededException() { } - public MaxLinesExceededException(string message) { } - public MaxLinesExceededException(string message, System.Exception innerException) { } - } - public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter - { - public MultidimensionalArrayFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public NullValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PredicateLambdaExpressionValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter - { - public PropertyInfoFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SByteValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public SingleValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public StringValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TaskFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public TimeSpanValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt16ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt32ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public UInt64ValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] - public class ValueFormatterAttribute : System.Attribute - { - public ValueFormatterAttribute() { } - } - public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XAttributeValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XDocumentValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XElementValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } - public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlReaderValueFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} -namespace FluentAssertions.Numeric -{ - public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> - { - public ComparableTypeAssertions(System.IComparable value) { } - } - public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> - where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions - { - public ComparableTypeAssertions(System.IComparable value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> - where T : struct, System.IComparable - { - public NullableNumericAssertions(T? value) { } - } - public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions - { - public NullableNumericAssertions(T? value) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> - where T : struct, System.IComparable - { - public NumericAssertions(T value) { } - } - public class NumericAssertions - where T : struct, System.IComparable - where TAssertions : FluentAssertions.Numeric.NumericAssertions - { - public NumericAssertions(T value) { } - public T? Subject { get; } - public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Primitives -{ - public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - } - public class BooleanAssertions - where TAssertions : FluentAssertions.Primitives.BooleanAssertions - { - public BooleanAssertions(bool? value) { } - public bool? Subject { get; } - public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - } - public class DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - public DateTimeAssertions(System.DateTime? value) { } - public System.DateTime? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - } - public class DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } - public System.DateTimeOffset? Subject { get; } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class DateTimeOffsetRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - { - protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class DateTimeRangeAssertions - where TAssertions : FluentAssertions.Primitives.DateTimeAssertions - { - protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } - public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> - where TEnum : struct, System.Enum - { - public EnumAssertions(TEnum subject) { } - } - public class EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.EnumAssertions - { - public EnumAssertions(TEnum subject) { } - public TEnum? Subject { get; } - public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) - where T : struct, System.Enum { } - public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } - } - public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - } - public class GuidAssertions - where TAssertions : FluentAssertions.Primitives.GuidAssertions - { - public GuidAssertions(System.Guid? value) { } - public System.Guid? Subject { get; } - public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - } - public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions - where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions - { - protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - } - public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions - where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions - { - public NullableBooleanAssertions(bool? value) { } - public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - } - public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions - { - public NullableDateTimeAssertions(System.DateTime? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - } - public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions - where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions - { - public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> - where TEnum : struct, System.Enum - { - public NullableEnumAssertions(TEnum? subject) { } - } - public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions - where TEnum : struct, System.Enum - where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions - { - public NullableEnumAssertions(TEnum? subject) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - } - public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions - where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions - { - public NullableGuidAssertions(System.Guid? value) { } - public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions - { - public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } - public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(object value) { } - } - public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ObjectAssertions - { - public ObjectAssertions(TSubject value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } - } - public abstract class ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - protected ReferenceTypeAssertions(TSubject subject) { } - protected abstract string Identifier { get; } - public TSubject Subject { get; } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) - where T : TSubject { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } - } - public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - } - public class SimpleTimeSpanAssertions - where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions - { - public SimpleTimeSpanAssertions(System.TimeSpan? value) { } - public System.TimeSpan? Subject { get; } - public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - } - public class StringAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - } - public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TAssertions : FluentAssertions.Primitives.StringAssertions - { - public StringAssertions(string value) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } - public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAll(params string[] values) { } - public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainAny(params string[] values) { } - public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } - public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } - } - public enum TimeSpanCondition - { - MoreThan = 0, - AtLeast = 1, - Exactly = 2, - Within = 3, - LessThan = 4, - } -} -namespace FluentAssertions.Reflection -{ - public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public AssemblyAssertions(System.Reflection.Assembly assembly) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Specialized -{ - public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions - { - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - } - public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> - where TTask : System.Threading.Tasks.Task - where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - { - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } - protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) - where TException : System.Exception { } - } - public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase - where TDelegate : System.Delegate - where TAssertions : FluentAssertions.Specialized.DelegateAssertions - { - protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } - protected abstract void InvokeSubject(); - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) - where TException : System.Exception { } - } - public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> - where TException : System.Exception - { - public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } - public TException And { get; } - protected override string Identifier { get; } - public TException Which { get; } - public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) - where TInnerException : System.Exception { } - public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } - } - public class ExecutionTime - { - public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } - public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } - } - public class ExecutionTimeAssertions - { - public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } - public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - } - public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> - { - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - protected override string Identifier { get; } - protected override void InvokeSubject() { } - public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - } - public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> - { - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } - public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } - } - public interface IExtractExceptions - { - System.Collections.Generic.IEnumerable OfType(System.Exception actualException) - where T : System.Exception; - } - public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime - { - public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } - } - public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions - { - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } - public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } - } - public class TaskCompletionSourceAssertions - { - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } - public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } - public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Streams -{ - public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - } - public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions - where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions - { - public BufferedStreamAssertions(System.IO.BufferedStream stream) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { } - } - public class StreamAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(System.IO.Stream stream) { } - } - public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.IO.Stream - where TAssertions : FluentAssertions.Streams.StreamAssertions - { - public StreamAssertions(TSubject stream) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Types -{ - public static class AllTypes - { - public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } - } - public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } - protected override string Identifier { get; } - } - public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Reflection.MemberInfo - where TAssertions : FluentAssertions.Types.MemberInfoAssertions - { - protected MemberInfoAssertions(TSubject subject) { } - protected override string Identifier { get; } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - } - public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions - where TSubject : System.Reflection.MethodBase - where TAssertions : FluentAssertions.Types.MethodBaseAssertions - { - protected MethodBaseAssertions(TSubject subject) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - } - public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions - { - public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } - } - public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } - public MethodInfoSelector(System.Type type) { } - public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } - public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } - public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } - public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } - public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } - public System.Reflection.MethodInfo[] ToArray() { } - } - public class MethodInfoSelectorAssertions - { - public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectMethods { get; } - public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions - { - public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } - } - public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } - public PropertyInfoSelector(System.Type type) { } - public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } - public FluentAssertions.Types.PropertyInfoSelector OfType() { } - public FluentAssertions.Types.TypeSelector ReturnTypes() { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public System.Reflection.PropertyInfo[] ToArray() { } - } - public class PropertyInfoSelectorAssertions - { - public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } - protected string Context { get; } - public System.Collections.Generic.IEnumerable SubjectProperties { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } - } - public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public TypeAssertions(System.Type type) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) - where TBaseClass : class { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) - where TInterface : class { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) - where TInterface : class { } - } - public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public TypeSelector(System.Collections.Generic.IEnumerable types) { } - public TypeSelector(System.Type type) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public FluentAssertions.Types.TypeSelector ThatAreClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() - where TAttribute : System.Attribute { } - public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatAreStatic() { } - public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } - public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } - public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } - public FluentAssertions.Types.TypeSelector ThatImplement() { } - public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } - public System.Type[] ToArray() { } - public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } - public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } - } - public class TypeSelectorAssertions - { - public TypeSelectorAssertions(params System.Type[] types) { } - public System.Collections.Generic.IEnumerable Subject { get; } - public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public override bool Equals(object obj) { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) - where TAttribute : System.Attribute { } - public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } - } -} -namespace FluentAssertions.Xml -{ - public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } - } - public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XDocumentAssertions(System.Xml.Linq.XDocument document) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } - } - public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - { - public XElementAssertions(System.Xml.Linq.XElement xElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveSingleElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } - } - public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions - where TSubject : System.Xml.XmlNode - where TAssertions : FluentAssertions.Xml.XmlNodeAssertions - { - public XmlNodeAssertions(TSubject xmlNode) { } - protected override string Identifier { get; } - public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } - } - public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter - { - public XmlNodeFormatter() { } - public bool CanHandle(object value) { } - public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } - } -} \ No newline at end of file diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index 685c1b7b42..f3072040db 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1229,100 +1229,5 @@ public void When_asserting_a_null_document_to_have_an_element_count_it_should_fa } #endregion - - #region HaveSingleElement - - [Fact] - public void A_single_expected_child_element_with_the_specified_name_should_be_accepted() - { - // Arrange - var document = XDocument.Parse( - @" - - "); - - // Act / Assert - document.Should().HaveSingleElement("child"); - } - - [Fact] - public void A_single_expected_child_element_with_the_specified_xml_name_should_be_accepted() - { - // Arrange - var document = XDocument.Parse( - @" - - "); - - // Act / Assert - document.Should().HaveSingleElement(XNamespace.None + "child"); - } - - [Fact] - public void Chaining_which_after_asserting_on_singularity_passes() - { - // Arrange - var document = XDocument.Parse( - @" - - "); - - // Act / Assert - document.Should().HaveSingleElement("child").Which.Should().HaveAttribute("foo", "bar"); - } - - [Fact] - public void Chaining_which_after_asserting_on_singularity_fails_if_element_is_not_single() - { - // Arrange - var document = XDocument.Parse( - @" - - - "); - - // Act - Action act = () => document.Should().HaveSingleElement("child") - .Which.Should().HaveAttribute("foo", "bar"); - - // Assert - act.Should().Throw() - .WithMessage("Expected document to have 1 child element(s) \"child\", but found 2."); - } - - [Fact] - public void Multiple_child_elements_with_the_specified_name_should_fail_the_test() - { - // Arrange - var document = XDocument.Parse( - @" - - - "); - - // Act - Action act = () => document.Should().HaveSingleElement("child", - "because we want to test the failure {0}", "message"); - - // Assert - act.Should().Throw().WithMessage( - "Expected document to have 1 child element(s) \"child\"*failure message*, but found 2."); - } - - [Fact] - public void Cannot_ensure_a_single_element_if_the_document_is_null() - { - // Arrange - XDocument xDocument = null; - - // Act - Action act = () => xDocument.Should().HaveSingleElement("child"); - - // Assert - act.Should().Throw().WithMessage( - "Cannot assert the count if the document itself is ."); - } - - #endregion } } diff --git a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs index 89ccee047d..069eb0d3b8 100644 --- a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs @@ -1299,100 +1299,5 @@ public void Null_element_is_expected_to_have_an_element_count_it_should_fail() } #endregion - - #region HaveSingleElement - - [Fact] - public void A_single_expected_child_element_with_the_specified_name_should_be_accepted() - { - // Arrange - var element = XElement.Parse( - @" - - "); - - // Act / Assert - element.Should().HaveSingleElement("child"); - } - - [Fact] - public void A_single_expected_child_element_with_the_specified_xml_name_should_be_accepted() - { - // Arrange - var element = XElement.Parse( - @" - - "); - - // Act / Assert - element.Should().HaveSingleElement(XNamespace.None + "child"); - } - - [Fact] - public void Chaining_which_after_asserting_on_singularity_passes() - { - // Arrange - var element = XElement.Parse( - @" - - "); - - // Act / Assert - element.Should().HaveSingleElement("child").Which.Should().HaveAttribute("foo", "bar"); - } - - [Fact] - public void Chaining_which_after_asserting_on_singularity_fails_if_element_is_not_single() - { - // Arrange - var element = XElement.Parse( - @" - - - "); - - // Act - Action act = () => element.Should().HaveSingleElement("child") - .Which.Should().HaveAttribute("foo", "bar"); - - // Assert - act.Should().Throw() - .WithMessage("Expected element to have 1 child element(s) \"child\", but found 2."); - } - - [Fact] - public void Multiple_child_elements_with_the_specified_name_should_fail_the_test() - { - // Arrange - var element = XElement.Parse( - @" - - - "); - - // Act - Action act = () => element.Should().HaveSingleElement("child", - "because we want to test the failure {0}", "message"); - - // Assert - act.Should().Throw().WithMessage( - "Expected element to have 1 child element(s) \"child\"*failure message*, but found 2."); - } - - [Fact] - public void Cannot_ensure_a_single_element_if_the_document_is_null() - { - // Arrange - XElement xElement = null; - - // Act - Action act = () => xElement.Should().HaveSingleElement("child"); - - // Assert - act.Should().Throw().WithMessage( - "Expected* to have an element with count of *, but the element itself is ."); - } - - #endregion } } From 657bc57edef7924750fceb8c0a9c6724bb5ad005 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 06:24:42 +0200 Subject: [PATCH 32/46] Accept API changes --- .../FluentAssertions/net47.verified.txt | 2691 ++++++++++++++++ .../FluentAssertions/net6.0.verified.txt | 2811 +++++++++++++++++ .../netcoreapp2.1.verified.txt | 2693 ++++++++++++++++ .../netcoreapp3.0.verified.txt | 2693 ++++++++++++++++ .../netstandard2.0.verified.txt | 2643 ++++++++++++++++ .../netstandard2.1.verified.txt | 2693 ++++++++++++++++ 6 files changed, 16224 insertions(+) create mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt create mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt create mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt create mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt create mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt create mode 100644 Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt new file mode 100644 index 0000000000..f3c17cc9de --- /dev/null +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt @@ -0,0 +1,2691 @@ +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7", FrameworkDisplayName=".NET Framework 4.7")] +namespace FluentAssertions +{ + public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions + { + public AggregateExceptionExtractor() { } + public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception { } + } + public class AndConstraint + { + public AndConstraint(T parentConstraint) { } + public T And { get; } + } + public class AndWhichConstraint : FluentAssertions.AndConstraint + { + public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } + public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } + public TMatchedElement Subject { get; } + public TMatchedElement Which { get; } + } + public static class AssertionExtensions + { + public static TTo As(this object subject) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Action Enumerating(this System.Func enumerable) { } + public static System.Action Enumerating(this System.Func> enumerable) { } + public static System.Action Enumerating(this T subject, System.Func> enumerable) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static System.Action Invoking(this T subject, System.Action action) { } + public static System.Func Invoking(this T subject, System.Func action) { } + public static FluentAssertions.Events.IMonitor Monitor(this T eventSource, System.Func utcNow = null) { } + public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } + public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } + public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } + public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } + public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } + public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } + public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } + public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } + public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } + public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } + public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } + public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } + public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } + public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } + public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } + public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } + public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } + public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } + public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } + public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } + public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } + public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } + public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } + public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } + public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } + public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } + public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) + where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.GuidAssertions _) + where TAssertions : FluentAssertions.Primitives.GuidAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } + public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } + public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } + public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } + public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Numeric.NumericAssertions _) + where TSubject : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.EnumAssertions _) + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } + public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) + where TCollection : System.Collections.Generic.IEnumerable> { } + } + public static class AssertionOptions + { + public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } + public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } + public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } + } + public static class AsyncAssertionsExtensions + { + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + } + public static class AtLeast + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class AtMost + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class CallerIdentifier + { + public static System.Action Logger { get; set; } + public static string DetermineCallerIdentity() { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class CustomAssertionAttribute : System.Attribute + { + public CustomAssertionAttribute() { } + } + public static class DataRowAssertionExtensions + { + public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) + where TDataRow : System.Data.DataRow { } + } + public static class DataSetAssertionExtensions + { + public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) + where TDataSet : System.Data.DataSet { } + } + public static class DataTableAssertionExtensions + { + public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) + where TDataTable : System.Data.DataTable { } + } + public static class EnumAssertionsExtensions + { + public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) + where TEnum : struct, System.Enum { } + public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) + where TEnum : struct, System.Enum { } + } + public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public EquivalencyPlan() { } + public void Add() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void AddAfter() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Clear() { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public void Insert() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void InsertBefore() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Remove() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } + public void Reset() { } + } + public static class EventRaisingExtensions + { + public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, System.Linq.Expressions.Expression> predicate) { } + public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, params System.Linq.Expressions.Expression>[] predicates) { } + public static FluentAssertions.Events.IEventRecording WithSender(this FluentAssertions.Events.IEventRecording eventRecording, object expectedSender) { } + } + public static class Exactly + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class ExceptionAssertionsExtensions + { + public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + } + public static class FluentActions + { + public static System.Func Awaiting(System.Func action) { } + public static System.Func> Awaiting(System.Func> func) { } + public static System.Action Enumerating(System.Func enumerable) { } + public static System.Action Enumerating(System.Func> enumerable) { } + public static System.Action Invoking(System.Action action) { } + public static System.Func Invoking(System.Func func) { } + } + public static class LessThan + { + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class MoreThan + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class NumericAssertionsExtensions + { + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + } + public static class ObjectAssertionsExtensions + { + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + } + public abstract class OccurrenceConstraint + { + protected OccurrenceConstraint(int expectedCount) { } + } + public static class TypeEnumerableExtensions + { + public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } + public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } + } + public static class TypeExtensions + { + public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } + } + public static class XmlAssertionExtensions + { + public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } + public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } + } +} +namespace FluentAssertions.Collections +{ + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> + { + public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public GenericCollectionAssertions(TCollection actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions + { + public GenericCollectionAssertions(TCollection actualValue) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } + public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(params T[] elements) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } + public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where TKey : class { } + public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } + public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } + public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } + public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } + public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } + public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } + public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + { + public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public StringCollectionAssertions(TCollection actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.StringCollectionAssertions + { + public StringCollectionAssertions(TCollection actualValue) { } + public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } + public FluentAssertions.AndConstraint Equal(params string[] expected) { } + public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> + { + public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + } + public class WhoseValueConstraint : FluentAssertions.AndConstraint + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } + public TValue WhoseValue { get; } + } +} +namespace FluentAssertions.Common +{ + public enum CSharpAccessModifier + { + Public = 0, + Private = 1, + Protected = 2, + Internal = 3, + ProtectedInternal = 4, + InvalidForCSharp = 5, + PrivateProtected = 6, + } + public class Configuration + { + public Configuration(FluentAssertions.Common.IConfigurationStore store) { } + public string TestFrameworkName { get; set; } + public string ValueFormatterAssembly { get; set; } + public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } + public static FluentAssertions.Common.Configuration Current { get; } + } + public static class DateTimeExtensions + { + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } + } + public interface IClock + { + void Delay(System.TimeSpan timeToDelay); + System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); + FluentAssertions.Common.ITimer StartTimer(); + } + public interface IConfigurationStore + { + string GetSetting(string name); + } + public interface IReflector + { + System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); + } + public interface ITimer : System.IDisposable + { + System.TimeSpan Elapsed { get; } + } + public static class Services + { + public static FluentAssertions.Common.Configuration Configuration { get; } + public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } + public static FluentAssertions.Common.IReflector Reflector { get; set; } + public static System.Action ThrowException { get; set; } + public static void ResetToDefaults() { } + } + public delegate FluentAssertions.Common.ITimer StartTimer(); + public enum ValueFormatterDetectionMode + { + Disabled = 0, + Specific = 1, + Scan = 2, + } +} +namespace FluentAssertions.Data +{ + public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public DataColumnAssertions(System.Data.DataColumn dataColumn) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataRow : System.Data.DataRow + { + public DataRowAssertions(TDataRow dataRow) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + } + public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataSet : System.Data.DataSet + { + public DataSetAssertions(TDataSet dataSet) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } + public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } + } + public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataTable : System.Data.DataTable + { + public DataTableAssertions(TDataTable dataTable) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } + } + public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + { + FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); + } + public enum RowMatchMode + { + Index = 0, + PrimaryKey = 1, + } +} +namespace FluentAssertions.Equivalency +{ + public class Comparands + { + public Comparands() { } + public Comparands(object subject, object expectation, System.Type compileTimeType) { } + public System.Type CompileTimeType { get; set; } + public object Expectation { get; set; } + public System.Type RuntimeType { get; } + public object Subject { get; set; } + public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public override string ToString() { } + } + public class ConversionSelector + { + public ConversionSelector() { } + public FluentAssertions.Equivalency.ConversionSelector Clone() { } + public void Exclude(System.Linq.Expressions.Expression> predicate) { } + public void Include(System.Linq.Expressions.Expression> predicate) { } + public void IncludeAll() { } + public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } + public override string ToString() { } + } + public enum CyclicReferenceHandling + { + Ignore = 0, + ThrowException = 1, + } + public enum EnumEquivalencyHandling + { + ByValue = 0, + ByName = 1, + } + public enum EqualityStrategy + { + Equals = 0, + Members = 1, + ForceEquals = 2, + ForceMembers = 3, + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + public EquivalencyAssertionOptions() { } + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> + { + public EquivalencyAssertionOptions() { } + public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } + } + public enum EquivalencyResult + { + ContinueWithNext = 0, + AssertionCompleted = 1, + } + public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + protected EquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext + { + public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.INode CurrentNode { get; } + public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + public FluentAssertions.Execution.Reason Reason { get; set; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } + public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } + public bool IsCyclicReference(object expectation) { } + public override string ToString() { } + } + public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator + { + public EquivalencyValidator() { } + public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } + public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } + } + public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; set; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public delegate string GetSubjectId(); + public interface IAssertionContext + { + string Because { get; set; } + object[] BecauseArgs { get; set; } + TSubject Expectation { get; } + FluentAssertions.Equivalency.INode SelectedNode { get; } + TSubject Subject { get; } + } + public interface IEquivalencyAssertionOptions + { + bool AllowInfiniteRecursion { get; } + bool CompareRecordsByValue { get; } + FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } + FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + bool IsRecursive { get; } + System.Collections.Generic.IEnumerable MatchingRules { get; } + FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + System.Collections.Generic.IEnumerable SelectionRules { get; } + FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + bool UseRuntimeTyping { get; } + System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } + FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); + } + public interface IEquivalencyStep + { + FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public interface IEquivalencyValidationContext + { + FluentAssertions.Equivalency.INode CurrentNode { get; } + FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + FluentAssertions.Execution.Reason Reason { get; } + FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); + FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); + bool IsCyclicReference(object expectation); + } + public interface IEquivalencyValidator + { + void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); + } + public interface IMember : FluentAssertions.Equivalency.INode + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + System.Type ReflectedType { get; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + object GetValue(object obj); + } + public interface IMemberInfo + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + string Name { get; } + string Path { get; set; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + System.Type Type { get; } + } + public interface IMemberMatchingRule + { + FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); + } + public interface IMemberSelectionRule + { + bool IncludesMembers { get; } + System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); + } + public interface INode + { + int Depth { get; } + string Description { get; } + FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } + bool IsRoot { get; } + string Name { get; set; } + string Path { get; } + string PathAndName { get; } + bool RootIsCollection { get; } + System.Type Type { get; } + } + public interface IObjectInfo + { + System.Type CompileTimeType { get; } + string Path { get; set; } + System.Type RuntimeType { get; } + System.Type Type { get; } + } + public interface IOrderingRule + { + FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); + } + public static class MemberFactory + { + public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } + } + public class MemberSelectionContext + { + public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + public System.Type Type { get; } + } + [System.Flags] + public enum MemberVisibility + { + None = 0, + Internal = 1, + Public = 2, + } + public class Node : FluentAssertions.Equivalency.INode + { + public Node() { } + public int Depth { get; } + public virtual string Description { get; } + public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } + public bool IsRoot { get; } + public string Name { get; set; } + public string Path { get; set; } + public string PathAndName { get; } + public bool RootIsCollection { get; set; } + public System.Type Type { get; set; } + public override bool Equals(object obj) { } + public override int GetHashCode() { } + public override string ToString() { } + public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } + public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } + public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } + } + public enum OrderStrictness + { + Strict = 0, + NotStrict = 1, + Irrelevant = 2, + } + public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public OrderingRuleCollection() { } + public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } + public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } + } + public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public bool CompareRecordsByValue { get; } + public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] + protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf AllowingInfiniteRecursion() { } + public TSelf ComparingByMembers(System.Type type) { } + public TSelf ComparingByMembers() { } + public TSelf ComparingByValue(System.Type type) { } + public TSelf ComparingByValue() { } + public TSelf ComparingEnumsByName() { } + public TSelf ComparingEnumsByValue() { } + public TSelf ComparingRecordsByMembers() { } + public TSelf ComparingRecordsByValue() { } + public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } + public TSelf ExcludingFields() { } + public TSelf ExcludingMissingMembers() { } + public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingProperties() { } + public TSelf IgnoringCyclicReferences() { } + public TSelf Including(System.Linq.Expressions.Expression> predicate) { } + public TSelf IncludingAllDeclaredProperties() { } + public TSelf IncludingAllRuntimeProperties() { } + public TSelf IncludingFields() { } + public TSelf IncludingInternalFields() { } + public TSelf IncludingInternalProperties() { } + public TSelf IncludingNestedObjects() { } + public TSelf IncludingProperties() { } + public TSelf RespectingDeclaredTypes() { } + public TSelf RespectingRuntimeTypes() { } + public TSelf ThrowingOnMissingMembers() { } + public override string ToString() { } + public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } + public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } + public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } + public TSelf Using() + where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } + public TSelf WithAutoConversion() { } + public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithStrictOrdering() { } + public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } + public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public void WithoutMatchingRules() { } + public void WithoutSelectionRules() { } + public TSelf WithoutStrictOrdering() { } + public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public class Restriction + { + public Restriction(TSelf options, System.Action> action) { } + public TSelf When(System.Linq.Expressions.Expression> predicate) { } + public TSelf WhenTypeIs() + where TMemberType : TMember { } + } + } + public static class SubjectInfoExtensions + { + public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + } +} +namespace FluentAssertions.Equivalency.Steps +{ + public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AutoConversionStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataColumnEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRelationEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataSetEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataTableEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DictionaryEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumEqualityStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericDictionaryEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericEnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ReferenceEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public RunAllUserStepsEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public SimpleEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StringEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StructuralEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ValueTypeEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XAttributeEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XDocumentEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XElementEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } +} +namespace FluentAssertions.Equivalency.Tracing +{ + public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); + public interface ITraceWriter + { + System.IDisposable AddBlock(string trace); + void AddSingle(string trace); + string ToString(); + } + public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter + { + public StringBuilderTraceWriter() { } + public System.IDisposable AddBlock(string trace) { } + public void AddSingle(string trace) { } + public override string ToString() { } + } + public class Tracer + { + public override string ToString() { } + public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + } +} +namespace FluentAssertions.Events +{ + public class EventAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + { + protected EventAssertions(FluentAssertions.Events.IMonitor monitor) { } + protected override string Identifier { get; } + public void NotRaise(string eventName, string because = "", params object[] becauseArgs) { } + public void NotRaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Events.IEventRecording Raise(string eventName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Events.IEventRecording RaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + } + public class EventMetadata + { + public EventMetadata(string eventName, System.Type handlerType) { } + public string EventName { get; } + public System.Type HandlerType { get; } + } + public interface IEventRecording : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + System.Type EventHandlerType { get; } + string EventName { get; } + object EventObject { get; } + } + public interface IMonitor : System.IDisposable + { + FluentAssertions.Events.EventMetadata[] MonitoredEvents { get; } + FluentAssertions.Events.OccurredEvent[] OccurredEvents { get; } + T Subject { get; } + void Clear(); + FluentAssertions.Events.IEventRecording GetRecordingFor(string eventName); + FluentAssertions.Events.EventAssertions Should(); + } + public class OccurredEvent + { + public OccurredEvent() { } + public string EventName { get; set; } + public object[] Parameters { get; set; } + public int Sequence { get; set; } + public System.DateTime TimestampUtc { get; set; } + } +} +namespace FluentAssertions.Execution +{ + [System.Serializable] + public class AssertionFailedException : System.Exception + { + public AssertionFailedException(string message) { } + protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } + public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public AssertionScope() { } + public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } + public AssertionScope(System.Lazy context) { } + public AssertionScope(string context) { } + public string CallerIdentity { get; } + public System.Lazy Context { get; set; } + public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } + public static FluentAssertions.Execution.AssertionScope Current { get; } + public void AddNonReportable(string key, object value) { } + public void AddPreFormattedFailure(string formattedFailureMessage) { } + public void AddReportable(string key, System.Func valueFunc) { } + public void AddReportable(string key, string value) { } + public void AppendTracing(string tracingBlock) { } + public void AssumeSingleCaller() { } + public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } + public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } + public T Get(string key) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public bool HasFailures() { } + public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } + } + public class Continuation + { + public FluentAssertions.Execution.IAssertionScope Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } + } + public class ContinuationOfGiven + { + public FluentAssertions.Execution.GivenSelector Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } + } + public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } + } + public static class Execute + { + public static FluentAssertions.Execution.AssertionScope Assertion { get; } + } + public class FailReason + { + public FailReason(string message, params object[] args) { } + public object[] Args { get; } + public string Message { get; } + } + public class GivenSelector + { + public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + } + public interface IAssertionScope : System.IDisposable + { + FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); + FluentAssertions.Execution.Continuation ClearExpectation(); + string[] Discard(); + FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); + FluentAssertions.Execution.Continuation FailWith(string message); + FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); + FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); + FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); + FluentAssertions.Execution.GivenSelector Given(System.Func selector); + FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); + FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); + } + public interface IAssertionStrategy + { + System.Collections.Generic.IEnumerable FailureMessages { get; } + System.Collections.Generic.IEnumerable DiscardFailures(); + void HandleFailure(string message); + void ThrowIfAny(System.Collections.Generic.IDictionary context); + } + public interface ICloneable2 + { + object Clone(); + } + public class Reason + { + public Reason(string formattedMessage, object[] arguments) { } + public object[] Arguments { get; set; } + public string FormattedMessage { get; set; } + } +} +namespace FluentAssertions.Extensions +{ + public static class FluentDateTimeExtensions + { + public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } + public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } + public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } + public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } + public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime April(this int day, int year) { } + public static System.DateTime AsLocal(this System.DateTime dateTime) { } + public static System.DateTime AsUtc(this System.DateTime dateTime) { } + public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } + public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTime August(this int day, int year) { } + public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime December(this int day, int year) { } + public static System.DateTime February(this int day, int year) { } + public static System.DateTime January(this int day, int year) { } + public static System.DateTime July(this int day, int year) { } + public static System.DateTime June(this int day, int year) { } + public static System.DateTime March(this int day, int year) { } + public static System.DateTime May(this int day, int year) { } + public static int Microsecond(this System.DateTime self) { } + public static int Microsecond(this System.DateTimeOffset self) { } + public static int Nanosecond(this System.DateTime self) { } + public static int Nanosecond(this System.DateTimeOffset self) { } + public static System.DateTime November(this int day, int year) { } + public static System.DateTime October(this int day, int year) { } + public static System.DateTime September(this int day, int year) { } + public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } + } + public static class FluentTimeSpanExtensions + { + public const long TicksPerMicrosecond = 10; + public const double TicksPerNanosecond = 0.01D; + public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } + public static System.TimeSpan Days(this double days) { } + public static System.TimeSpan Days(this int days) { } + public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } + public static System.TimeSpan Hours(this double hours) { } + public static System.TimeSpan Hours(this int hours) { } + public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } + public static int Microseconds(this System.TimeSpan self) { } + public static System.TimeSpan Microseconds(this int microseconds) { } + public static System.TimeSpan Microseconds(this long microseconds) { } + public static System.TimeSpan Milliseconds(this double milliseconds) { } + public static System.TimeSpan Milliseconds(this int milliseconds) { } + public static System.TimeSpan Minutes(this double minutes) { } + public static System.TimeSpan Minutes(this int minutes) { } + public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } + public static int Nanoseconds(this System.TimeSpan self) { } + public static System.TimeSpan Nanoseconds(this int nanoseconds) { } + public static System.TimeSpan Nanoseconds(this long nanoseconds) { } + public static System.TimeSpan Seconds(this double seconds) { } + public static System.TimeSpan Seconds(this int seconds) { } + public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } + public static System.TimeSpan Ticks(this int ticks) { } + public static System.TimeSpan Ticks(this long ticks) { } + public static double TotalMicroseconds(this System.TimeSpan self) { } + public static double TotalNanoseconds(this System.TimeSpan self) { } + } +} +namespace FluentAssertions.Formatting +{ + public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AggregateExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AttributeBasedFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DateTimeOffsetValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DecimalValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DefaultValueFormatter() { } + protected virtual int SpacesPerIndentionLevel { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } + protected virtual string TypeDisplayName(System.Type type) { } + } + public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DictionaryValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DoubleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumValueFormatter() { } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumerableValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); + public class FormattedObjectGraph + { + public FormattedObjectGraph(int maxLines) { } + public int LineCount { get; } + public static int SpacesPerIndentation { get; } + public void AddFragment(string fragment) { } + public void AddFragmentOnNewLine(string fragment) { } + public void AddLine(string line) { } + public override string ToString() { } + public System.IDisposable WithIndentation() { } + } + public static class Formatter + { + public static System.Collections.Generic.IEnumerable Formatters { get; } + public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } + } + public class FormattingContext + { + public FormattingContext() { } + public bool UseLineBreaks { get; set; } + } + public class FormattingOptions + { + public FormattingOptions() { } + public int MaxDepth { get; set; } + public int MaxLines { get; set; } + public bool UseLineBreaks { get; set; } + } + public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public GuidValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public interface IValueFormatter + { + bool CanHandle(object value); + void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); + } + public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class MaxLinesExceededException : System.Exception + { + public MaxLinesExceededException() { } + public MaxLinesExceededException(string message) { } + public MaxLinesExceededException(string message, System.Exception innerException) { } + } + public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter + { + public MultidimensionalArrayFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public NullValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PredicateLambdaExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PropertyInfoFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SingleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public StringValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TaskFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TimeSpanValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class ValueFormatterAttribute : System.Attribute + { + public ValueFormatterAttribute() { } + } + public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XAttributeValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XDocumentValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XElementValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlReaderValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} +namespace FluentAssertions.Numeric +{ + public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> + { + public ComparableTypeAssertions(System.IComparable value) { } + } + public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> + where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions + { + public ComparableTypeAssertions(System.IComparable value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> + where T : struct, System.IComparable + { + public NullableNumericAssertions(T? value) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions + { + public NullableNumericAssertions(T? value) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> + where T : struct, System.IComparable + { + public NumericAssertions(T value) { } + } + public class NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions + { + public NumericAssertions(T value) { } + public T? Subject { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Primitives +{ + public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + } + public class BooleanAssertions + where TAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + public bool? Subject { get; } + public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + } + public class DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + public System.DateTime? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + } + public class DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + public System.DateTimeOffset? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class DateTimeRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> + where TEnum : struct, System.Enum + { + public EnumAssertions(TEnum subject) { } + } + public class EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions + { + public EnumAssertions(TEnum subject) { } + public TEnum? Subject { get; } + public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } + } + public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + } + public class GuidAssertions + where TAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + public System.Guid? Subject { get; } + public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions + where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> + where TEnum : struct, System.Enum + { + public NullableEnumAssertions(TEnum? subject) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions + { + public NullableEnumAssertions(TEnum? subject) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions + where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(object value) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(TSubject value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public abstract class ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + protected ReferenceTypeAssertions(TSubject subject) { } + protected abstract string Identifier { get; } + public TSubject Subject { get; } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where T : TSubject { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } + } + public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + public System.TimeSpan? Subject { get; } + public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + } + public class StringAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + } + public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAll(params string[] values) { } + public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAny(params string[] values) { } + public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + } + public enum TimeSpanCondition + { + MoreThan = 0, + AtLeast = 1, + Exactly = 2, + Within = 3, + LessThan = 4, + } +} +namespace FluentAssertions.Reflection +{ + public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public AssemblyAssertions(System.Reflection.Assembly assembly) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Specialized +{ + public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions + { + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + } + public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> + where TTask : System.Threading.Tasks.Task + where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + { + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertions + { + protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } + protected abstract void InvokeSubject(); + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> + where TException : System.Exception + { + public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } + public TException And { get; } + protected override string Identifier { get; } + public TException Which { get; } + public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class ExecutionTime + { + public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } + public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + } + public class ExecutionTimeAssertions + { + public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> + { + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + } + public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> + { + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } + } + public interface IExtractExceptions + { + System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception; + } + public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime + { + public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } + } + public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + } + public class TaskCompletionSourceAssertions + { + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Streams +{ + public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + } + public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions + where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + protected override string Identifier { get; } + } + public class StreamAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(System.IO.Stream stream) { } + } + public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.IO.Stream + where TAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(TSubject stream) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Types +{ + public static class AllTypes + { + public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } + } + public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } + protected override string Identifier { get; } + } + public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Reflection.MemberInfo + where TAssertions : FluentAssertions.Types.MemberInfoAssertions + { + protected MemberInfoAssertions(TSubject subject) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + } + public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions + where TSubject : System.Reflection.MethodBase + where TAssertions : FluentAssertions.Types.MethodBaseAssertions + { + protected MethodBaseAssertions(TSubject subject) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + } + public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } + } + public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } + public MethodInfoSelector(System.Type type) { } + public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } + public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } + public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } + public System.Reflection.MethodInfo[] ToArray() { } + } + public class MethodInfoSelectorAssertions + { + public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectMethods { get; } + public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions + { + public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } + public PropertyInfoSelector(System.Type type) { } + public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } + public FluentAssertions.Types.PropertyInfoSelector OfType() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public System.Reflection.PropertyInfo[] ToArray() { } + } + public class PropertyInfoSelectorAssertions + { + public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectProperties { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + } + public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public TypeAssertions(System.Type type) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) + where TInterface : class { } + } + public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public TypeSelector(System.Collections.Generic.IEnumerable types) { } + public TypeSelector(System.Type type) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ThatAreClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } + public FluentAssertions.Types.TypeSelector ThatImplement() { } + public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } + public System.Type[] ToArray() { } + public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } + public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } + } + public class TypeSelectorAssertions + { + public TypeSelectorAssertions(params System.Type[] types) { } + public System.Collections.Generic.IEnumerable Subject { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Xml +{ + public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } + } + public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XDocumentAssertions(System.Xml.Linq.XDocument document) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + } + public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XElementAssertions(System.Xml.Linq.XElement xElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } + } + public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Xml.XmlNode + where TAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(TSubject xmlNode) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlNodeFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} \ No newline at end of file diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt new file mode 100644 index 0000000000..e946c4eec9 --- /dev/null +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt @@ -0,0 +1,2811 @@ +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName="")] +namespace FluentAssertions +{ + public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions + { + public AggregateExceptionExtractor() { } + public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception { } + } + public class AndConstraint + { + public AndConstraint(T parentConstraint) { } + public T And { get; } + } + public class AndWhichConstraint : FluentAssertions.AndConstraint + { + public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } + public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } + public TMatchedElement Subject { get; } + public TMatchedElement Which { get; } + } + public static class AssertionExtensions + { + public static TTo As(this object subject) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Action Enumerating(this System.Func enumerable) { } + public static System.Action Enumerating(this System.Func> enumerable) { } + public static System.Action Enumerating(this T subject, System.Func> enumerable) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static System.Action Invoking(this T subject, System.Action action) { } + public static System.Func Invoking(this T subject, System.Func action) { } + public static FluentAssertions.Events.IMonitor Monitor(this T eventSource, System.Func utcNow = null) { } + public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } + public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } + public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } + public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } + public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } + public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } + public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Primitives.DateOnlyAssertions Should(this System.DateOnly actualValue) { } + public static FluentAssertions.Primitives.NullableDateOnlyAssertions Should(this System.DateOnly? actualValue) { } + public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } + public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } + public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } + public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } + public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } + public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } + public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } + public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } + public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } + public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } + public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } + public static FluentAssertions.Primitives.TimeOnlyAssertions Should(this System.TimeOnly actualValue) { } + public static FluentAssertions.Primitives.NullableTimeOnlyAssertions Should(this System.TimeOnly? actualValue) { } + public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } + public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } + public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } + public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } + public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } + public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } + public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } + public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } + public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } + public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) + where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateOnlyAssertions _) + where TAssertions : FluentAssertions.Primitives.DateOnlyAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.GuidAssertions _) + where TAssertions : FluentAssertions.Primitives.GuidAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.TimeOnlyAssertions _) + where TAssertions : FluentAssertions.Primitives.TimeOnlyAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } + public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } + public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } + public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } + public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Numeric.NumericAssertions _) + where TSubject : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.EnumAssertions _) + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } + public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) + where TCollection : System.Collections.Generic.IEnumerable> { } + } + public static class AssertionOptions + { + public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } + public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } + public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } + } + public static class AsyncAssertionsExtensions + { + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + } + public static class AtLeast + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class AtMost + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class CallerIdentifier + { + public static System.Action Logger { get; set; } + public static string DetermineCallerIdentity() { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class CustomAssertionAttribute : System.Attribute + { + public CustomAssertionAttribute() { } + } + public static class DataRowAssertionExtensions + { + public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) + where TDataRow : System.Data.DataRow { } + } + public static class DataSetAssertionExtensions + { + public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) + where TDataSet : System.Data.DataSet { } + } + public static class DataTableAssertionExtensions + { + public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) + where TDataTable : System.Data.DataTable { } + } + public static class EnumAssertionsExtensions + { + public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) + where TEnum : struct, System.Enum { } + public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) + where TEnum : struct, System.Enum { } + } + public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public EquivalencyPlan() { } + public void Add() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void AddAfter() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Clear() { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public void Insert() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void InsertBefore() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Remove() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } + public void Reset() { } + } + public static class EventRaisingExtensions + { + public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, System.Linq.Expressions.Expression> predicate) { } + public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, params System.Linq.Expressions.Expression>[] predicates) { } + public static FluentAssertions.Events.IEventRecording WithSender(this FluentAssertions.Events.IEventRecording eventRecording, object expectedSender) { } + } + public static class Exactly + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class ExceptionAssertionsExtensions + { + public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + } + public static class FluentActions + { + public static System.Func Awaiting(System.Func action) { } + public static System.Func> Awaiting(System.Func> func) { } + public static System.Action Enumerating(System.Func enumerable) { } + public static System.Action Enumerating(System.Func> enumerable) { } + public static System.Action Invoking(System.Action action) { } + public static System.Func Invoking(System.Func func) { } + } + public static class LessThan + { + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class MoreThan + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class NumericAssertionsExtensions + { + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + } + public static class ObjectAssertionsExtensions + { + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + } + public abstract class OccurrenceConstraint + { + protected OccurrenceConstraint(int expectedCount) { } + } + public static class TypeEnumerableExtensions + { + public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } + public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } + } + public static class TypeExtensions + { + public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } + } + public static class XmlAssertionExtensions + { + public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } + public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } + } +} +namespace FluentAssertions.Collections +{ + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> + { + public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public GenericCollectionAssertions(TCollection actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions + { + public GenericCollectionAssertions(TCollection actualValue) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } + public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(params T[] elements) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } + public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where TKey : class { } + public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } + public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } + public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } + public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } + public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } + public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } + public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + { + public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public StringCollectionAssertions(TCollection actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.StringCollectionAssertions + { + public StringCollectionAssertions(TCollection actualValue) { } + public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } + public FluentAssertions.AndConstraint Equal(params string[] expected) { } + public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> + { + public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + } + public class WhoseValueConstraint : FluentAssertions.AndConstraint + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } + public TValue WhoseValue { get; } + } +} +namespace FluentAssertions.Common +{ + public enum CSharpAccessModifier + { + Public = 0, + Private = 1, + Protected = 2, + Internal = 3, + ProtectedInternal = 4, + InvalidForCSharp = 5, + PrivateProtected = 6, + } + public class Configuration + { + public Configuration(FluentAssertions.Common.IConfigurationStore store) { } + public string TestFrameworkName { get; set; } + public string ValueFormatterAssembly { get; set; } + public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } + public static FluentAssertions.Common.Configuration Current { get; } + } + public static class DateTimeExtensions + { + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } + } + public interface IClock + { + void Delay(System.TimeSpan timeToDelay); + System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); + FluentAssertions.Common.ITimer StartTimer(); + } + public interface IConfigurationStore + { + string GetSetting(string name); + } + public interface IReflector + { + System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); + } + public interface ITimer : System.IDisposable + { + System.TimeSpan Elapsed { get; } + } + public static class Services + { + public static FluentAssertions.Common.Configuration Configuration { get; } + public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } + public static FluentAssertions.Common.IReflector Reflector { get; set; } + public static System.Action ThrowException { get; set; } + public static void ResetToDefaults() { } + } + public delegate FluentAssertions.Common.ITimer StartTimer(); + public enum ValueFormatterDetectionMode + { + Disabled = 0, + Specific = 1, + Scan = 2, + } +} +namespace FluentAssertions.Data +{ + public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public DataColumnAssertions(System.Data.DataColumn dataColumn) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataRow : System.Data.DataRow + { + public DataRowAssertions(TDataRow dataRow) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + } + public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataSet : System.Data.DataSet + { + public DataSetAssertions(TDataSet dataSet) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } + public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } + } + public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataTable : System.Data.DataTable + { + public DataTableAssertions(TDataTable dataTable) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } + } + public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + { + FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); + } + public enum RowMatchMode + { + Index = 0, + PrimaryKey = 1, + } +} +namespace FluentAssertions.Equivalency +{ + public class Comparands + { + public Comparands() { } + public Comparands(object subject, object expectation, System.Type compileTimeType) { } + public System.Type CompileTimeType { get; set; } + public object Expectation { get; set; } + public System.Type RuntimeType { get; } + public object Subject { get; set; } + public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public override string ToString() { } + } + public class ConversionSelector + { + public ConversionSelector() { } + public FluentAssertions.Equivalency.ConversionSelector Clone() { } + public void Exclude(System.Linq.Expressions.Expression> predicate) { } + public void Include(System.Linq.Expressions.Expression> predicate) { } + public void IncludeAll() { } + public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } + public override string ToString() { } + } + public enum CyclicReferenceHandling + { + Ignore = 0, + ThrowException = 1, + } + public enum EnumEquivalencyHandling + { + ByValue = 0, + ByName = 1, + } + public enum EqualityStrategy + { + Equals = 0, + Members = 1, + ForceEquals = 2, + ForceMembers = 3, + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + public EquivalencyAssertionOptions() { } + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> + { + public EquivalencyAssertionOptions() { } + public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } + } + public enum EquivalencyResult + { + ContinueWithNext = 0, + AssertionCompleted = 1, + } + public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + protected EquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext + { + public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.INode CurrentNode { get; } + public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + public FluentAssertions.Execution.Reason Reason { get; set; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } + public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } + public bool IsCyclicReference(object expectation) { } + public override string ToString() { } + } + public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator + { + public EquivalencyValidator() { } + public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } + public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } + } + public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; set; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public delegate string GetSubjectId(); + public interface IAssertionContext + { + string Because { get; set; } + object[] BecauseArgs { get; set; } + TSubject Expectation { get; } + FluentAssertions.Equivalency.INode SelectedNode { get; } + TSubject Subject { get; } + } + public interface IEquivalencyAssertionOptions + { + bool AllowInfiniteRecursion { get; } + bool CompareRecordsByValue { get; } + FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } + FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + bool IsRecursive { get; } + System.Collections.Generic.IEnumerable MatchingRules { get; } + FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + System.Collections.Generic.IEnumerable SelectionRules { get; } + FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + bool UseRuntimeTyping { get; } + System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } + FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); + } + public interface IEquivalencyStep + { + FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public interface IEquivalencyValidationContext + { + FluentAssertions.Equivalency.INode CurrentNode { get; } + FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + FluentAssertions.Execution.Reason Reason { get; } + FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); + FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); + bool IsCyclicReference(object expectation); + } + public interface IEquivalencyValidator + { + void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); + } + public interface IMember : FluentAssertions.Equivalency.INode + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + System.Type ReflectedType { get; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + object GetValue(object obj); + } + public interface IMemberInfo + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + string Name { get; } + string Path { get; set; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + System.Type Type { get; } + } + public interface IMemberMatchingRule + { + FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); + } + public interface IMemberSelectionRule + { + bool IncludesMembers { get; } + System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); + } + public interface INode + { + int Depth { get; } + string Description { get; } + FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } + bool IsRoot { get; } + string Name { get; set; } + string Path { get; } + string PathAndName { get; } + bool RootIsCollection { get; } + System.Type Type { get; } + } + public interface IObjectInfo + { + System.Type CompileTimeType { get; } + string Path { get; set; } + System.Type RuntimeType { get; } + System.Type Type { get; } + } + public interface IOrderingRule + { + FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); + } + public static class MemberFactory + { + public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } + } + public class MemberSelectionContext + { + public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + public System.Type Type { get; } + } + [System.Flags] + public enum MemberVisibility + { + None = 0, + Internal = 1, + Public = 2, + } + public class Node : FluentAssertions.Equivalency.INode + { + public Node() { } + public int Depth { get; } + public virtual string Description { get; } + public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } + public bool IsRoot { get; } + public string Name { get; set; } + public string Path { get; set; } + public string PathAndName { get; } + public bool RootIsCollection { get; set; } + public System.Type Type { get; set; } + public override bool Equals(object obj) { } + public override int GetHashCode() { } + public override string ToString() { } + public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } + public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } + public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } + } + public enum OrderStrictness + { + Strict = 0, + NotStrict = 1, + Irrelevant = 2, + } + public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public OrderingRuleCollection() { } + public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } + public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } + } + public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public bool CompareRecordsByValue { get; } + public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] + protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf AllowingInfiniteRecursion() { } + public TSelf ComparingByMembers(System.Type type) { } + public TSelf ComparingByMembers() { } + public TSelf ComparingByValue(System.Type type) { } + public TSelf ComparingByValue() { } + public TSelf ComparingEnumsByName() { } + public TSelf ComparingEnumsByValue() { } + public TSelf ComparingRecordsByMembers() { } + public TSelf ComparingRecordsByValue() { } + public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } + public TSelf ExcludingFields() { } + public TSelf ExcludingMissingMembers() { } + public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingProperties() { } + public TSelf IgnoringCyclicReferences() { } + public TSelf Including(System.Linq.Expressions.Expression> predicate) { } + public TSelf IncludingAllDeclaredProperties() { } + public TSelf IncludingAllRuntimeProperties() { } + public TSelf IncludingFields() { } + public TSelf IncludingInternalFields() { } + public TSelf IncludingInternalProperties() { } + public TSelf IncludingNestedObjects() { } + public TSelf IncludingProperties() { } + public TSelf RespectingDeclaredTypes() { } + public TSelf RespectingRuntimeTypes() { } + public TSelf ThrowingOnMissingMembers() { } + public override string ToString() { } + public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } + public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } + public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } + public TSelf Using() + where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } + public TSelf WithAutoConversion() { } + public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithStrictOrdering() { } + public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } + public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public void WithoutMatchingRules() { } + public void WithoutSelectionRules() { } + public TSelf WithoutStrictOrdering() { } + public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public class Restriction + { + public Restriction(TSelf options, System.Action> action) { } + public TSelf When(System.Linq.Expressions.Expression> predicate) { } + public TSelf WhenTypeIs() + where TMemberType : TMember { } + } + } + public static class SubjectInfoExtensions + { + public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + } +} +namespace FluentAssertions.Equivalency.Steps +{ + public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AutoConversionStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataColumnEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRelationEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataSetEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataTableEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DictionaryEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumEqualityStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericDictionaryEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericEnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ReferenceEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public RunAllUserStepsEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public SimpleEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StringEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StructuralEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ValueTypeEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XAttributeEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XDocumentEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XElementEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } +} +namespace FluentAssertions.Equivalency.Tracing +{ + public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); + public interface ITraceWriter + { + System.IDisposable AddBlock(string trace); + void AddSingle(string trace); + string ToString(); + } + public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter + { + public StringBuilderTraceWriter() { } + public System.IDisposable AddBlock(string trace) { } + public void AddSingle(string trace) { } + public override string ToString() { } + } + public class Tracer + { + public override string ToString() { } + public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + } +} +namespace FluentAssertions.Events +{ + public class EventAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + { + protected EventAssertions(FluentAssertions.Events.IMonitor monitor) { } + protected override string Identifier { get; } + public void NotRaise(string eventName, string because = "", params object[] becauseArgs) { } + public void NotRaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Events.IEventRecording Raise(string eventName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Events.IEventRecording RaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + } + public class EventMetadata + { + public EventMetadata(string eventName, System.Type handlerType) { } + public string EventName { get; } + public System.Type HandlerType { get; } + } + public interface IEventRecording : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + System.Type EventHandlerType { get; } + string EventName { get; } + object EventObject { get; } + } + public interface IMonitor : System.IDisposable + { + FluentAssertions.Events.EventMetadata[] MonitoredEvents { get; } + FluentAssertions.Events.OccurredEvent[] OccurredEvents { get; } + T Subject { get; } + void Clear(); + FluentAssertions.Events.IEventRecording GetRecordingFor(string eventName); + FluentAssertions.Events.EventAssertions Should(); + } + public class OccurredEvent + { + public OccurredEvent() { } + public string EventName { get; set; } + public object[] Parameters { get; set; } + public int Sequence { get; set; } + public System.DateTime TimestampUtc { get; set; } + } +} +namespace FluentAssertions.Execution +{ + [System.Serializable] + public class AssertionFailedException : System.Exception + { + public AssertionFailedException(string message) { } + protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } + public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public AssertionScope() { } + public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } + public AssertionScope(System.Lazy context) { } + public AssertionScope(string context) { } + public string CallerIdentity { get; } + public System.Lazy Context { get; set; } + public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } + public static FluentAssertions.Execution.AssertionScope Current { get; } + public void AddNonReportable(string key, object value) { } + public void AddPreFormattedFailure(string formattedFailureMessage) { } + public void AddReportable(string key, System.Func valueFunc) { } + public void AddReportable(string key, string value) { } + public void AppendTracing(string tracingBlock) { } + public void AssumeSingleCaller() { } + public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } + public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } + public T Get(string key) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public bool HasFailures() { } + public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } + } + public class Continuation + { + public FluentAssertions.Execution.IAssertionScope Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } + } + public class ContinuationOfGiven + { + public FluentAssertions.Execution.GivenSelector Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } + } + public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } + } + public static class Execute + { + public static FluentAssertions.Execution.AssertionScope Assertion { get; } + } + public class FailReason + { + public FailReason(string message, params object[] args) { } + public object[] Args { get; } + public string Message { get; } + } + public class GivenSelector + { + public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + } + public interface IAssertionScope : System.IDisposable + { + FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); + FluentAssertions.Execution.Continuation ClearExpectation(); + string[] Discard(); + FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); + FluentAssertions.Execution.Continuation FailWith(string message); + FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); + FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); + FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); + FluentAssertions.Execution.GivenSelector Given(System.Func selector); + FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); + FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); + } + public interface IAssertionStrategy + { + System.Collections.Generic.IEnumerable FailureMessages { get; } + System.Collections.Generic.IEnumerable DiscardFailures(); + void HandleFailure(string message); + void ThrowIfAny(System.Collections.Generic.IDictionary context); + } + public interface ICloneable2 + { + object Clone(); + } + public class Reason + { + public Reason(string formattedMessage, object[] arguments) { } + public object[] Arguments { get; set; } + public string FormattedMessage { get; set; } + } +} +namespace FluentAssertions.Extensions +{ + public static class FluentDateTimeExtensions + { + public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } + public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } + public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } + public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } + public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime April(this int day, int year) { } + public static System.DateTime AsLocal(this System.DateTime dateTime) { } + public static System.DateTime AsUtc(this System.DateTime dateTime) { } + public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } + public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTime August(this int day, int year) { } + public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime December(this int day, int year) { } + public static System.DateTime February(this int day, int year) { } + public static System.DateTime January(this int day, int year) { } + public static System.DateTime July(this int day, int year) { } + public static System.DateTime June(this int day, int year) { } + public static System.DateTime March(this int day, int year) { } + public static System.DateTime May(this int day, int year) { } + public static int Microsecond(this System.DateTime self) { } + public static int Microsecond(this System.DateTimeOffset self) { } + public static int Nanosecond(this System.DateTime self) { } + public static int Nanosecond(this System.DateTimeOffset self) { } + public static System.DateTime November(this int day, int year) { } + public static System.DateTime October(this int day, int year) { } + public static System.DateTime September(this int day, int year) { } + public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } + } + public static class FluentTimeSpanExtensions + { + public const long TicksPerMicrosecond = 10; + public const double TicksPerNanosecond = 0.01D; + public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } + public static System.TimeSpan Days(this double days) { } + public static System.TimeSpan Days(this int days) { } + public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } + public static System.TimeSpan Hours(this double hours) { } + public static System.TimeSpan Hours(this int hours) { } + public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } + public static int Microseconds(this System.TimeSpan self) { } + public static System.TimeSpan Microseconds(this int microseconds) { } + public static System.TimeSpan Microseconds(this long microseconds) { } + public static System.TimeSpan Milliseconds(this double milliseconds) { } + public static System.TimeSpan Milliseconds(this int milliseconds) { } + public static System.TimeSpan Minutes(this double minutes) { } + public static System.TimeSpan Minutes(this int minutes) { } + public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } + public static int Nanoseconds(this System.TimeSpan self) { } + public static System.TimeSpan Nanoseconds(this int nanoseconds) { } + public static System.TimeSpan Nanoseconds(this long nanoseconds) { } + public static System.TimeSpan Seconds(this double seconds) { } + public static System.TimeSpan Seconds(this int seconds) { } + public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } + public static System.TimeSpan Ticks(this int ticks) { } + public static System.TimeSpan Ticks(this long ticks) { } + public static double TotalMicroseconds(this System.TimeSpan self) { } + public static double TotalNanoseconds(this System.TimeSpan self) { } + } +} +namespace FluentAssertions.Formatting +{ + public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AggregateExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AttributeBasedFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DateOnlyValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DateOnlyValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DateTimeOffsetValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DecimalValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DefaultValueFormatter() { } + protected virtual int SpacesPerIndentionLevel { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } + protected virtual string TypeDisplayName(System.Type type) { } + } + public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DictionaryValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DoubleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumValueFormatter() { } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumerableValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); + public class FormattedObjectGraph + { + public FormattedObjectGraph(int maxLines) { } + public int LineCount { get; } + public static int SpacesPerIndentation { get; } + public void AddFragment(string fragment) { } + public void AddFragmentOnNewLine(string fragment) { } + public void AddLine(string line) { } + public override string ToString() { } + public System.IDisposable WithIndentation() { } + } + public static class Formatter + { + public static System.Collections.Generic.IEnumerable Formatters { get; } + public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } + } + public class FormattingContext + { + public FormattingContext() { } + public bool UseLineBreaks { get; set; } + } + public class FormattingOptions + { + public FormattingOptions() { } + public int MaxDepth { get; set; } + public int MaxLines { get; set; } + public bool UseLineBreaks { get; set; } + } + public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public GuidValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public interface IValueFormatter + { + bool CanHandle(object value); + void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); + } + public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class MaxLinesExceededException : System.Exception + { + public MaxLinesExceededException() { } + public MaxLinesExceededException(string message) { } + public MaxLinesExceededException(string message, System.Exception innerException) { } + } + public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter + { + public MultidimensionalArrayFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public NullValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PredicateLambdaExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PropertyInfoFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SingleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public StringValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TaskFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TimeOnlyValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TimeOnlyValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TimeSpanValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class ValueFormatterAttribute : System.Attribute + { + public ValueFormatterAttribute() { } + } + public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XAttributeValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XDocumentValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XElementValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlReaderValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} +namespace FluentAssertions.Numeric +{ + public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> + { + public ComparableTypeAssertions(System.IComparable value) { } + } + public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> + where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions + { + public ComparableTypeAssertions(System.IComparable value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> + where T : struct, System.IComparable + { + public NullableNumericAssertions(T? value) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions + { + public NullableNumericAssertions(T? value) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> + where T : struct, System.IComparable + { + public NumericAssertions(T value) { } + } + public class NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions + { + public NumericAssertions(T value) { } + public T? Subject { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Primitives +{ + public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + } + public class BooleanAssertions + where TAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + public bool? Subject { get; } + public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateOnlyAssertions : FluentAssertions.Primitives.DateOnlyAssertions + { + public DateOnlyAssertions(System.DateOnly? value) { } + } + public class DateOnlyAssertions + where TAssertions : FluentAssertions.Primitives.DateOnlyAssertions + { + public DateOnlyAssertions(System.DateOnly? value) { } + public System.DateOnly? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateOnly expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateOnly? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateOnly expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeBefore(System.DateOnly expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateOnly expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateOnly expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateOnly[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateOnly unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateOnly? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateOnly unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateOnly unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateOnly unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateOnly unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + } + public class DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + public System.DateTime? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + } + public class DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + public System.DateTimeOffset? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class DateTimeRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> + where TEnum : struct, System.Enum + { + public EnumAssertions(TEnum subject) { } + } + public class EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions + { + public EnumAssertions(TEnum subject) { } + public TEnum? Subject { get; } + public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } + } + public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + } + public class GuidAssertions + where TAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + public System.Guid? Subject { get; } + public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions + where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateOnlyAssertions : FluentAssertions.Primitives.NullableDateOnlyAssertions + { + public NullableDateOnlyAssertions(System.DateOnly? value) { } + } + public class NullableDateOnlyAssertions : FluentAssertions.Primitives.DateOnlyAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateOnlyAssertions + { + public NullableDateOnlyAssertions(System.DateOnly? value) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> + where TEnum : struct, System.Enum + { + public NullableEnumAssertions(TEnum? subject) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions + { + public NullableEnumAssertions(TEnum? subject) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions + where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableTimeOnlyAssertions : FluentAssertions.Primitives.NullableTimeOnlyAssertions + { + public NullableTimeOnlyAssertions(System.TimeOnly? value) { } + } + public class NullableTimeOnlyAssertions : FluentAssertions.Primitives.TimeOnlyAssertions + where TAssertions : FluentAssertions.Primitives.NullableTimeOnlyAssertions + { + public NullableTimeOnlyAssertions(System.TimeOnly? value) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(object value) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(TSubject value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public abstract class ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + protected ReferenceTypeAssertions(TSubject subject) { } + protected abstract string Identifier { get; } + public TSubject Subject { get; } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where T : TSubject { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } + } + public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + public System.TimeSpan? Subject { get; } + public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + } + public class StringAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + } + public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAll(params string[] values) { } + public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAny(params string[] values) { } + public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + } + public class TimeOnlyAssertions : FluentAssertions.Primitives.TimeOnlyAssertions + { + public TimeOnlyAssertions(System.TimeOnly? value) { } + } + public class TimeOnlyAssertions + where TAssertions : FluentAssertions.Primitives.TimeOnlyAssertions + { + public TimeOnlyAssertions(System.TimeOnly? value) { } + public System.TimeOnly? Subject { get; } + public FluentAssertions.AndConstraint Be(System.TimeOnly expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.TimeOnly? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.TimeOnly expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeBefore(System.TimeOnly expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.TimeOnly expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.TimeOnly expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.TimeOnly[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveHours(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMilliseconds(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinutes(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSeconds(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.TimeOnly unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.TimeOnly? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.TimeOnly unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.TimeOnly unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.TimeOnly unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.TimeOnly unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHours(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMilliseconds(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinutes(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSeconds(int unexpected, string because = "", params object[] becauseArgs) { } + } + public enum TimeSpanCondition + { + MoreThan = 0, + AtLeast = 1, + Exactly = 2, + Within = 3, + LessThan = 4, + } +} +namespace FluentAssertions.Reflection +{ + public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public AssemblyAssertions(System.Reflection.Assembly assembly) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Specialized +{ + public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions + { + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + } + public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> + where TTask : System.Threading.Tasks.Task + where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + { + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertions + { + protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } + protected abstract void InvokeSubject(); + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> + where TException : System.Exception + { + public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } + public TException And { get; } + protected override string Identifier { get; } + public TException Which { get; } + public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class ExecutionTime + { + public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } + public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + } + public class ExecutionTimeAssertions + { + public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> + { + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + } + public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> + { + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } + } + public interface IExtractExceptions + { + System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception; + } + public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime + { + public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } + } + public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + } + public class TaskCompletionSourceAssertions + { + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Streams +{ + public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + } + public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions + where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class StreamAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(System.IO.Stream stream) { } + } + public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.IO.Stream + where TAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(TSubject stream) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Types +{ + public static class AllTypes + { + public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } + } + public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } + protected override string Identifier { get; } + } + public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Reflection.MemberInfo + where TAssertions : FluentAssertions.Types.MemberInfoAssertions + { + protected MemberInfoAssertions(TSubject subject) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + } + public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions + where TSubject : System.Reflection.MethodBase + where TAssertions : FluentAssertions.Types.MethodBaseAssertions + { + protected MethodBaseAssertions(TSubject subject) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + } + public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } + } + public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } + public MethodInfoSelector(System.Type type) { } + public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } + public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } + public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } + public System.Reflection.MethodInfo[] ToArray() { } + } + public class MethodInfoSelectorAssertions + { + public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectMethods { get; } + public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions + { + public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } + public PropertyInfoSelector(System.Type type) { } + public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } + public FluentAssertions.Types.PropertyInfoSelector OfType() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public System.Reflection.PropertyInfo[] ToArray() { } + } + public class PropertyInfoSelectorAssertions + { + public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectProperties { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + } + public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public TypeAssertions(System.Type type) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) + where TInterface : class { } + } + public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public TypeSelector(System.Collections.Generic.IEnumerable types) { } + public TypeSelector(System.Type type) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ThatAreClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } + public FluentAssertions.Types.TypeSelector ThatImplement() { } + public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } + public System.Type[] ToArray() { } + public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } + public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } + } + public class TypeSelectorAssertions + { + public TypeSelectorAssertions(params System.Type[] types) { } + public System.Collections.Generic.IEnumerable Subject { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Xml +{ + public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } + } + public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XDocumentAssertions(System.Xml.Linq.XDocument document) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + } + public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XElementAssertions(System.Xml.Linq.XElement xElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } + } + public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Xml.XmlNode + where TAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(TSubject xmlNode) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlNodeFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} \ No newline at end of file diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt new file mode 100644 index 0000000000..918c96f268 --- /dev/null +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt @@ -0,0 +1,2693 @@ +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v2.1", FrameworkDisplayName="")] +namespace FluentAssertions +{ + public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions + { + public AggregateExceptionExtractor() { } + public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception { } + } + public class AndConstraint + { + public AndConstraint(T parentConstraint) { } + public T And { get; } + } + public class AndWhichConstraint : FluentAssertions.AndConstraint + { + public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } + public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } + public TMatchedElement Subject { get; } + public TMatchedElement Which { get; } + } + public static class AssertionExtensions + { + public static TTo As(this object subject) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Action Enumerating(this System.Func enumerable) { } + public static System.Action Enumerating(this System.Func> enumerable) { } + public static System.Action Enumerating(this T subject, System.Func> enumerable) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static System.Action Invoking(this T subject, System.Action action) { } + public static System.Func Invoking(this T subject, System.Func action) { } + public static FluentAssertions.Events.IMonitor Monitor(this T eventSource, System.Func utcNow = null) { } + public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } + public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } + public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } + public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } + public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } + public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } + public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } + public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } + public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } + public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } + public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } + public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } + public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } + public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } + public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } + public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } + public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } + public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } + public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } + public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } + public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } + public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } + public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } + public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } + public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } + public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } + public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) + where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.GuidAssertions _) + where TAssertions : FluentAssertions.Primitives.GuidAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } + public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } + public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } + public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } + public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Numeric.NumericAssertions _) + where TSubject : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.EnumAssertions _) + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } + public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) + where TCollection : System.Collections.Generic.IEnumerable> { } + } + public static class AssertionOptions + { + public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } + public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } + public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } + } + public static class AsyncAssertionsExtensions + { + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + } + public static class AtLeast + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class AtMost + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class CallerIdentifier + { + public static System.Action Logger { get; set; } + public static string DetermineCallerIdentity() { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class CustomAssertionAttribute : System.Attribute + { + public CustomAssertionAttribute() { } + } + public static class DataRowAssertionExtensions + { + public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) + where TDataRow : System.Data.DataRow { } + } + public static class DataSetAssertionExtensions + { + public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) + where TDataSet : System.Data.DataSet { } + } + public static class DataTableAssertionExtensions + { + public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) + where TDataTable : System.Data.DataTable { } + } + public static class EnumAssertionsExtensions + { + public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) + where TEnum : struct, System.Enum { } + public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) + where TEnum : struct, System.Enum { } + } + public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public EquivalencyPlan() { } + public void Add() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void AddAfter() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Clear() { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public void Insert() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void InsertBefore() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Remove() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } + public void Reset() { } + } + public static class EventRaisingExtensions + { + public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, System.Linq.Expressions.Expression> predicate) { } + public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, params System.Linq.Expressions.Expression>[] predicates) { } + public static FluentAssertions.Events.IEventRecording WithSender(this FluentAssertions.Events.IEventRecording eventRecording, object expectedSender) { } + } + public static class Exactly + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class ExceptionAssertionsExtensions + { + public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + } + public static class FluentActions + { + public static System.Func Awaiting(System.Func action) { } + public static System.Func> Awaiting(System.Func> func) { } + public static System.Action Enumerating(System.Func enumerable) { } + public static System.Action Enumerating(System.Func> enumerable) { } + public static System.Action Invoking(System.Action action) { } + public static System.Func Invoking(System.Func func) { } + } + public static class LessThan + { + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class MoreThan + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class NumericAssertionsExtensions + { + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + } + public static class ObjectAssertionsExtensions + { + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + } + public abstract class OccurrenceConstraint + { + protected OccurrenceConstraint(int expectedCount) { } + } + public static class TypeEnumerableExtensions + { + public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } + public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } + } + public static class TypeExtensions + { + public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } + } + public static class XmlAssertionExtensions + { + public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } + public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } + } +} +namespace FluentAssertions.Collections +{ + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> + { + public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public GenericCollectionAssertions(TCollection actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions + { + public GenericCollectionAssertions(TCollection actualValue) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } + public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(params T[] elements) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } + public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where TKey : class { } + public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } + public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } + public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } + public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } + public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } + public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } + public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + { + public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public StringCollectionAssertions(TCollection actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.StringCollectionAssertions + { + public StringCollectionAssertions(TCollection actualValue) { } + public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } + public FluentAssertions.AndConstraint Equal(params string[] expected) { } + public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> + { + public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + } + public class WhoseValueConstraint : FluentAssertions.AndConstraint + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } + public TValue WhoseValue { get; } + } +} +namespace FluentAssertions.Common +{ + public enum CSharpAccessModifier + { + Public = 0, + Private = 1, + Protected = 2, + Internal = 3, + ProtectedInternal = 4, + InvalidForCSharp = 5, + PrivateProtected = 6, + } + public class Configuration + { + public Configuration(FluentAssertions.Common.IConfigurationStore store) { } + public string TestFrameworkName { get; set; } + public string ValueFormatterAssembly { get; set; } + public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } + public static FluentAssertions.Common.Configuration Current { get; } + } + public static class DateTimeExtensions + { + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } + } + public interface IClock + { + void Delay(System.TimeSpan timeToDelay); + System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); + FluentAssertions.Common.ITimer StartTimer(); + } + public interface IConfigurationStore + { + string GetSetting(string name); + } + public interface IReflector + { + System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); + } + public interface ITimer : System.IDisposable + { + System.TimeSpan Elapsed { get; } + } + public static class Services + { + public static FluentAssertions.Common.Configuration Configuration { get; } + public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } + public static FluentAssertions.Common.IReflector Reflector { get; set; } + public static System.Action ThrowException { get; set; } + public static void ResetToDefaults() { } + } + public delegate FluentAssertions.Common.ITimer StartTimer(); + public enum ValueFormatterDetectionMode + { + Disabled = 0, + Specific = 1, + Scan = 2, + } +} +namespace FluentAssertions.Data +{ + public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public DataColumnAssertions(System.Data.DataColumn dataColumn) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataRow : System.Data.DataRow + { + public DataRowAssertions(TDataRow dataRow) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + } + public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataSet : System.Data.DataSet + { + public DataSetAssertions(TDataSet dataSet) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } + public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } + } + public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataTable : System.Data.DataTable + { + public DataTableAssertions(TDataTable dataTable) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } + } + public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + { + FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); + } + public enum RowMatchMode + { + Index = 0, + PrimaryKey = 1, + } +} +namespace FluentAssertions.Equivalency +{ + public class Comparands + { + public Comparands() { } + public Comparands(object subject, object expectation, System.Type compileTimeType) { } + public System.Type CompileTimeType { get; set; } + public object Expectation { get; set; } + public System.Type RuntimeType { get; } + public object Subject { get; set; } + public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public override string ToString() { } + } + public class ConversionSelector + { + public ConversionSelector() { } + public FluentAssertions.Equivalency.ConversionSelector Clone() { } + public void Exclude(System.Linq.Expressions.Expression> predicate) { } + public void Include(System.Linq.Expressions.Expression> predicate) { } + public void IncludeAll() { } + public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } + public override string ToString() { } + } + public enum CyclicReferenceHandling + { + Ignore = 0, + ThrowException = 1, + } + public enum EnumEquivalencyHandling + { + ByValue = 0, + ByName = 1, + } + public enum EqualityStrategy + { + Equals = 0, + Members = 1, + ForceEquals = 2, + ForceMembers = 3, + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + public EquivalencyAssertionOptions() { } + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> + { + public EquivalencyAssertionOptions() { } + public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } + } + public enum EquivalencyResult + { + ContinueWithNext = 0, + AssertionCompleted = 1, + } + public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + protected EquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext + { + public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.INode CurrentNode { get; } + public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + public FluentAssertions.Execution.Reason Reason { get; set; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } + public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } + public bool IsCyclicReference(object expectation) { } + public override string ToString() { } + } + public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator + { + public EquivalencyValidator() { } + public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } + public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } + } + public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; set; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public delegate string GetSubjectId(); + public interface IAssertionContext + { + string Because { get; set; } + object[] BecauseArgs { get; set; } + TSubject Expectation { get; } + FluentAssertions.Equivalency.INode SelectedNode { get; } + TSubject Subject { get; } + } + public interface IEquivalencyAssertionOptions + { + bool AllowInfiniteRecursion { get; } + bool CompareRecordsByValue { get; } + FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } + FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + bool IsRecursive { get; } + System.Collections.Generic.IEnumerable MatchingRules { get; } + FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + System.Collections.Generic.IEnumerable SelectionRules { get; } + FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + bool UseRuntimeTyping { get; } + System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } + FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); + } + public interface IEquivalencyStep + { + FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public interface IEquivalencyValidationContext + { + FluentAssertions.Equivalency.INode CurrentNode { get; } + FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + FluentAssertions.Execution.Reason Reason { get; } + FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); + FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); + bool IsCyclicReference(object expectation); + } + public interface IEquivalencyValidator + { + void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); + } + public interface IMember : FluentAssertions.Equivalency.INode + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + System.Type ReflectedType { get; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + object GetValue(object obj); + } + public interface IMemberInfo + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + string Name { get; } + string Path { get; set; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + System.Type Type { get; } + } + public interface IMemberMatchingRule + { + FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); + } + public interface IMemberSelectionRule + { + bool IncludesMembers { get; } + System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); + } + public interface INode + { + int Depth { get; } + string Description { get; } + FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } + bool IsRoot { get; } + string Name { get; set; } + string Path { get; } + string PathAndName { get; } + bool RootIsCollection { get; } + System.Type Type { get; } + } + public interface IObjectInfo + { + System.Type CompileTimeType { get; } + string Path { get; set; } + System.Type RuntimeType { get; } + System.Type Type { get; } + } + public interface IOrderingRule + { + FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); + } + public static class MemberFactory + { + public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } + } + public class MemberSelectionContext + { + public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + public System.Type Type { get; } + } + [System.Flags] + public enum MemberVisibility + { + None = 0, + Internal = 1, + Public = 2, + } + public class Node : FluentAssertions.Equivalency.INode + { + public Node() { } + public int Depth { get; } + public virtual string Description { get; } + public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } + public bool IsRoot { get; } + public string Name { get; set; } + public string Path { get; set; } + public string PathAndName { get; } + public bool RootIsCollection { get; set; } + public System.Type Type { get; set; } + public override bool Equals(object obj) { } + public override int GetHashCode() { } + public override string ToString() { } + public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } + public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } + public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } + } + public enum OrderStrictness + { + Strict = 0, + NotStrict = 1, + Irrelevant = 2, + } + public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public OrderingRuleCollection() { } + public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } + public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } + } + public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public bool CompareRecordsByValue { get; } + public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] + protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf AllowingInfiniteRecursion() { } + public TSelf ComparingByMembers(System.Type type) { } + public TSelf ComparingByMembers() { } + public TSelf ComparingByValue(System.Type type) { } + public TSelf ComparingByValue() { } + public TSelf ComparingEnumsByName() { } + public TSelf ComparingEnumsByValue() { } + public TSelf ComparingRecordsByMembers() { } + public TSelf ComparingRecordsByValue() { } + public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } + public TSelf ExcludingFields() { } + public TSelf ExcludingMissingMembers() { } + public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingProperties() { } + public TSelf IgnoringCyclicReferences() { } + public TSelf Including(System.Linq.Expressions.Expression> predicate) { } + public TSelf IncludingAllDeclaredProperties() { } + public TSelf IncludingAllRuntimeProperties() { } + public TSelf IncludingFields() { } + public TSelf IncludingInternalFields() { } + public TSelf IncludingInternalProperties() { } + public TSelf IncludingNestedObjects() { } + public TSelf IncludingProperties() { } + public TSelf RespectingDeclaredTypes() { } + public TSelf RespectingRuntimeTypes() { } + public TSelf ThrowingOnMissingMembers() { } + public override string ToString() { } + public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } + public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } + public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } + public TSelf Using() + where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } + public TSelf WithAutoConversion() { } + public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithStrictOrdering() { } + public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } + public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public void WithoutMatchingRules() { } + public void WithoutSelectionRules() { } + public TSelf WithoutStrictOrdering() { } + public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public class Restriction + { + public Restriction(TSelf options, System.Action> action) { } + public TSelf When(System.Linq.Expressions.Expression> predicate) { } + public TSelf WhenTypeIs() + where TMemberType : TMember { } + } + } + public static class SubjectInfoExtensions + { + public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + } +} +namespace FluentAssertions.Equivalency.Steps +{ + public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AutoConversionStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataColumnEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRelationEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataSetEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataTableEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DictionaryEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumEqualityStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericDictionaryEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericEnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ReferenceEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public RunAllUserStepsEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public SimpleEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StringEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StructuralEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ValueTypeEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XAttributeEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XDocumentEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XElementEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } +} +namespace FluentAssertions.Equivalency.Tracing +{ + public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); + public interface ITraceWriter + { + System.IDisposable AddBlock(string trace); + void AddSingle(string trace); + string ToString(); + } + public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter + { + public StringBuilderTraceWriter() { } + public System.IDisposable AddBlock(string trace) { } + public void AddSingle(string trace) { } + public override string ToString() { } + } + public class Tracer + { + public override string ToString() { } + public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + } +} +namespace FluentAssertions.Events +{ + public class EventAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + { + protected EventAssertions(FluentAssertions.Events.IMonitor monitor) { } + protected override string Identifier { get; } + public void NotRaise(string eventName, string because = "", params object[] becauseArgs) { } + public void NotRaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Events.IEventRecording Raise(string eventName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Events.IEventRecording RaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + } + public class EventMetadata + { + public EventMetadata(string eventName, System.Type handlerType) { } + public string EventName { get; } + public System.Type HandlerType { get; } + } + public interface IEventRecording : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + System.Type EventHandlerType { get; } + string EventName { get; } + object EventObject { get; } + } + public interface IMonitor : System.IDisposable + { + FluentAssertions.Events.EventMetadata[] MonitoredEvents { get; } + FluentAssertions.Events.OccurredEvent[] OccurredEvents { get; } + T Subject { get; } + void Clear(); + FluentAssertions.Events.IEventRecording GetRecordingFor(string eventName); + FluentAssertions.Events.EventAssertions Should(); + } + public class OccurredEvent + { + public OccurredEvent() { } + public string EventName { get; set; } + public object[] Parameters { get; set; } + public int Sequence { get; set; } + public System.DateTime TimestampUtc { get; set; } + } +} +namespace FluentAssertions.Execution +{ + [System.Serializable] + public class AssertionFailedException : System.Exception + { + public AssertionFailedException(string message) { } + protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } + public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public AssertionScope() { } + public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } + public AssertionScope(System.Lazy context) { } + public AssertionScope(string context) { } + public string CallerIdentity { get; } + public System.Lazy Context { get; set; } + public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } + public static FluentAssertions.Execution.AssertionScope Current { get; } + public void AddNonReportable(string key, object value) { } + public void AddPreFormattedFailure(string formattedFailureMessage) { } + public void AddReportable(string key, System.Func valueFunc) { } + public void AddReportable(string key, string value) { } + public void AppendTracing(string tracingBlock) { } + public void AssumeSingleCaller() { } + public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } + public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } + public T Get(string key) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public bool HasFailures() { } + public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } + } + public class Continuation + { + public FluentAssertions.Execution.IAssertionScope Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } + } + public class ContinuationOfGiven + { + public FluentAssertions.Execution.GivenSelector Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } + } + public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } + } + public static class Execute + { + public static FluentAssertions.Execution.AssertionScope Assertion { get; } + } + public class FailReason + { + public FailReason(string message, params object[] args) { } + public object[] Args { get; } + public string Message { get; } + } + public class GivenSelector + { + public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + } + public interface IAssertionScope : System.IDisposable + { + FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); + FluentAssertions.Execution.Continuation ClearExpectation(); + string[] Discard(); + FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); + FluentAssertions.Execution.Continuation FailWith(string message); + FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); + FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); + FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); + FluentAssertions.Execution.GivenSelector Given(System.Func selector); + FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); + FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); + } + public interface IAssertionStrategy + { + System.Collections.Generic.IEnumerable FailureMessages { get; } + System.Collections.Generic.IEnumerable DiscardFailures(); + void HandleFailure(string message); + void ThrowIfAny(System.Collections.Generic.IDictionary context); + } + public interface ICloneable2 + { + object Clone(); + } + public class Reason + { + public Reason(string formattedMessage, object[] arguments) { } + public object[] Arguments { get; set; } + public string FormattedMessage { get; set; } + } +} +namespace FluentAssertions.Extensions +{ + public static class FluentDateTimeExtensions + { + public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } + public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } + public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } + public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } + public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime April(this int day, int year) { } + public static System.DateTime AsLocal(this System.DateTime dateTime) { } + public static System.DateTime AsUtc(this System.DateTime dateTime) { } + public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } + public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTime August(this int day, int year) { } + public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime December(this int day, int year) { } + public static System.DateTime February(this int day, int year) { } + public static System.DateTime January(this int day, int year) { } + public static System.DateTime July(this int day, int year) { } + public static System.DateTime June(this int day, int year) { } + public static System.DateTime March(this int day, int year) { } + public static System.DateTime May(this int day, int year) { } + public static int Microsecond(this System.DateTime self) { } + public static int Microsecond(this System.DateTimeOffset self) { } + public static int Nanosecond(this System.DateTime self) { } + public static int Nanosecond(this System.DateTimeOffset self) { } + public static System.DateTime November(this int day, int year) { } + public static System.DateTime October(this int day, int year) { } + public static System.DateTime September(this int day, int year) { } + public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } + } + public static class FluentTimeSpanExtensions + { + public const long TicksPerMicrosecond = 10; + public const double TicksPerNanosecond = 0.01D; + public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } + public static System.TimeSpan Days(this double days) { } + public static System.TimeSpan Days(this int days) { } + public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } + public static System.TimeSpan Hours(this double hours) { } + public static System.TimeSpan Hours(this int hours) { } + public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } + public static int Microseconds(this System.TimeSpan self) { } + public static System.TimeSpan Microseconds(this int microseconds) { } + public static System.TimeSpan Microseconds(this long microseconds) { } + public static System.TimeSpan Milliseconds(this double milliseconds) { } + public static System.TimeSpan Milliseconds(this int milliseconds) { } + public static System.TimeSpan Minutes(this double minutes) { } + public static System.TimeSpan Minutes(this int minutes) { } + public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } + public static int Nanoseconds(this System.TimeSpan self) { } + public static System.TimeSpan Nanoseconds(this int nanoseconds) { } + public static System.TimeSpan Nanoseconds(this long nanoseconds) { } + public static System.TimeSpan Seconds(this double seconds) { } + public static System.TimeSpan Seconds(this int seconds) { } + public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } + public static System.TimeSpan Ticks(this int ticks) { } + public static System.TimeSpan Ticks(this long ticks) { } + public static double TotalMicroseconds(this System.TimeSpan self) { } + public static double TotalNanoseconds(this System.TimeSpan self) { } + } +} +namespace FluentAssertions.Formatting +{ + public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AggregateExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AttributeBasedFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DateTimeOffsetValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DecimalValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DefaultValueFormatter() { } + protected virtual int SpacesPerIndentionLevel { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } + protected virtual string TypeDisplayName(System.Type type) { } + } + public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DictionaryValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DoubleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumValueFormatter() { } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumerableValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); + public class FormattedObjectGraph + { + public FormattedObjectGraph(int maxLines) { } + public int LineCount { get; } + public static int SpacesPerIndentation { get; } + public void AddFragment(string fragment) { } + public void AddFragmentOnNewLine(string fragment) { } + public void AddLine(string line) { } + public override string ToString() { } + public System.IDisposable WithIndentation() { } + } + public static class Formatter + { + public static System.Collections.Generic.IEnumerable Formatters { get; } + public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } + } + public class FormattingContext + { + public FormattingContext() { } + public bool UseLineBreaks { get; set; } + } + public class FormattingOptions + { + public FormattingOptions() { } + public int MaxDepth { get; set; } + public int MaxLines { get; set; } + public bool UseLineBreaks { get; set; } + } + public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public GuidValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public interface IValueFormatter + { + bool CanHandle(object value); + void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); + } + public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class MaxLinesExceededException : System.Exception + { + public MaxLinesExceededException() { } + public MaxLinesExceededException(string message) { } + public MaxLinesExceededException(string message, System.Exception innerException) { } + } + public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter + { + public MultidimensionalArrayFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public NullValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PredicateLambdaExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PropertyInfoFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SingleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public StringValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TaskFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TimeSpanValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class ValueFormatterAttribute : System.Attribute + { + public ValueFormatterAttribute() { } + } + public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XAttributeValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XDocumentValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XElementValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlReaderValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} +namespace FluentAssertions.Numeric +{ + public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> + { + public ComparableTypeAssertions(System.IComparable value) { } + } + public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> + where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions + { + public ComparableTypeAssertions(System.IComparable value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> + where T : struct, System.IComparable + { + public NullableNumericAssertions(T? value) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions + { + public NullableNumericAssertions(T? value) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> + where T : struct, System.IComparable + { + public NumericAssertions(T value) { } + } + public class NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions + { + public NumericAssertions(T value) { } + public T? Subject { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Primitives +{ + public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + } + public class BooleanAssertions + where TAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + public bool? Subject { get; } + public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + } + public class DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + public System.DateTime? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + } + public class DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + public System.DateTimeOffset? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class DateTimeRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> + where TEnum : struct, System.Enum + { + public EnumAssertions(TEnum subject) { } + } + public class EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions + { + public EnumAssertions(TEnum subject) { } + public TEnum? Subject { get; } + public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } + } + public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + } + public class GuidAssertions + where TAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + public System.Guid? Subject { get; } + public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions + where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> + where TEnum : struct, System.Enum + { + public NullableEnumAssertions(TEnum? subject) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions + { + public NullableEnumAssertions(TEnum? subject) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions + where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(object value) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(TSubject value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public abstract class ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + protected ReferenceTypeAssertions(TSubject subject) { } + protected abstract string Identifier { get; } + public TSubject Subject { get; } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where T : TSubject { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } + } + public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + public System.TimeSpan? Subject { get; } + public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + } + public class StringAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + } + public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAll(params string[] values) { } + public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAny(params string[] values) { } + public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + } + public enum TimeSpanCondition + { + MoreThan = 0, + AtLeast = 1, + Exactly = 2, + Within = 3, + LessThan = 4, + } +} +namespace FluentAssertions.Reflection +{ + public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public AssemblyAssertions(System.Reflection.Assembly assembly) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Specialized +{ + public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions + { + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + } + public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> + where TTask : System.Threading.Tasks.Task + where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + { + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertions + { + protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } + protected abstract void InvokeSubject(); + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> + where TException : System.Exception + { + public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } + public TException And { get; } + protected override string Identifier { get; } + public TException Which { get; } + public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class ExecutionTime + { + public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } + public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + } + public class ExecutionTimeAssertions + { + public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> + { + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + } + public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> + { + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } + } + public interface IExtractExceptions + { + System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception; + } + public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime + { + public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } + } + public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + } + public class TaskCompletionSourceAssertions + { + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Streams +{ + public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + } + public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions + where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class StreamAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(System.IO.Stream stream) { } + } + public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.IO.Stream + where TAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(TSubject stream) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Types +{ + public static class AllTypes + { + public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } + } + public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } + protected override string Identifier { get; } + } + public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Reflection.MemberInfo + where TAssertions : FluentAssertions.Types.MemberInfoAssertions + { + protected MemberInfoAssertions(TSubject subject) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + } + public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions + where TSubject : System.Reflection.MethodBase + where TAssertions : FluentAssertions.Types.MethodBaseAssertions + { + protected MethodBaseAssertions(TSubject subject) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + } + public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } + } + public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } + public MethodInfoSelector(System.Type type) { } + public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } + public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } + public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } + public System.Reflection.MethodInfo[] ToArray() { } + } + public class MethodInfoSelectorAssertions + { + public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectMethods { get; } + public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions + { + public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } + public PropertyInfoSelector(System.Type type) { } + public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } + public FluentAssertions.Types.PropertyInfoSelector OfType() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public System.Reflection.PropertyInfo[] ToArray() { } + } + public class PropertyInfoSelectorAssertions + { + public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectProperties { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + } + public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public TypeAssertions(System.Type type) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) + where TInterface : class { } + } + public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public TypeSelector(System.Collections.Generic.IEnumerable types) { } + public TypeSelector(System.Type type) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ThatAreClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } + public FluentAssertions.Types.TypeSelector ThatImplement() { } + public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } + public System.Type[] ToArray() { } + public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } + public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } + } + public class TypeSelectorAssertions + { + public TypeSelectorAssertions(params System.Type[] types) { } + public System.Collections.Generic.IEnumerable Subject { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Xml +{ + public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } + } + public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XDocumentAssertions(System.Xml.Linq.XDocument document) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + } + public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XElementAssertions(System.Xml.Linq.XElement xElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } + } + public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Xml.XmlNode + where TAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(TSubject xmlNode) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlNodeFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} \ No newline at end of file diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt new file mode 100644 index 0000000000..d56163133f --- /dev/null +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt @@ -0,0 +1,2693 @@ +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v3.0", FrameworkDisplayName="")] +namespace FluentAssertions +{ + public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions + { + public AggregateExceptionExtractor() { } + public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception { } + } + public class AndConstraint + { + public AndConstraint(T parentConstraint) { } + public T And { get; } + } + public class AndWhichConstraint : FluentAssertions.AndConstraint + { + public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } + public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } + public TMatchedElement Subject { get; } + public TMatchedElement Which { get; } + } + public static class AssertionExtensions + { + public static TTo As(this object subject) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Action Enumerating(this System.Func enumerable) { } + public static System.Action Enumerating(this System.Func> enumerable) { } + public static System.Action Enumerating(this T subject, System.Func> enumerable) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static System.Action Invoking(this T subject, System.Action action) { } + public static System.Func Invoking(this T subject, System.Func action) { } + public static FluentAssertions.Events.IMonitor Monitor(this T eventSource, System.Func utcNow = null) { } + public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } + public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } + public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } + public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } + public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } + public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } + public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } + public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } + public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } + public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } + public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } + public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } + public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } + public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } + public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } + public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } + public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } + public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } + public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } + public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } + public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } + public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } + public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } + public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } + public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } + public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } + public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) + where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.GuidAssertions _) + where TAssertions : FluentAssertions.Primitives.GuidAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } + public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } + public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } + public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } + public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Numeric.NumericAssertions _) + where TSubject : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.EnumAssertions _) + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } + public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) + where TCollection : System.Collections.Generic.IEnumerable> { } + } + public static class AssertionOptions + { + public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } + public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } + public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } + } + public static class AsyncAssertionsExtensions + { + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + } + public static class AtLeast + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class AtMost + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class CallerIdentifier + { + public static System.Action Logger { get; set; } + public static string DetermineCallerIdentity() { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class CustomAssertionAttribute : System.Attribute + { + public CustomAssertionAttribute() { } + } + public static class DataRowAssertionExtensions + { + public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) + where TDataRow : System.Data.DataRow { } + } + public static class DataSetAssertionExtensions + { + public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) + where TDataSet : System.Data.DataSet { } + } + public static class DataTableAssertionExtensions + { + public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) + where TDataTable : System.Data.DataTable { } + } + public static class EnumAssertionsExtensions + { + public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) + where TEnum : struct, System.Enum { } + public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) + where TEnum : struct, System.Enum { } + } + public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public EquivalencyPlan() { } + public void Add() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void AddAfter() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Clear() { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public void Insert() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void InsertBefore() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Remove() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } + public void Reset() { } + } + public static class EventRaisingExtensions + { + public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, System.Linq.Expressions.Expression> predicate) { } + public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, params System.Linq.Expressions.Expression>[] predicates) { } + public static FluentAssertions.Events.IEventRecording WithSender(this FluentAssertions.Events.IEventRecording eventRecording, object expectedSender) { } + } + public static class Exactly + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class ExceptionAssertionsExtensions + { + public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + } + public static class FluentActions + { + public static System.Func Awaiting(System.Func action) { } + public static System.Func> Awaiting(System.Func> func) { } + public static System.Action Enumerating(System.Func enumerable) { } + public static System.Action Enumerating(System.Func> enumerable) { } + public static System.Action Invoking(System.Action action) { } + public static System.Func Invoking(System.Func func) { } + } + public static class LessThan + { + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class MoreThan + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class NumericAssertionsExtensions + { + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + } + public static class ObjectAssertionsExtensions + { + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + } + public abstract class OccurrenceConstraint + { + protected OccurrenceConstraint(int expectedCount) { } + } + public static class TypeEnumerableExtensions + { + public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } + public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } + } + public static class TypeExtensions + { + public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } + } + public static class XmlAssertionExtensions + { + public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } + public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } + } +} +namespace FluentAssertions.Collections +{ + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> + { + public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public GenericCollectionAssertions(TCollection actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions + { + public GenericCollectionAssertions(TCollection actualValue) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } + public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(params T[] elements) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } + public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where TKey : class { } + public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } + public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } + public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } + public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } + public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } + public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } + public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + { + public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public StringCollectionAssertions(TCollection actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.StringCollectionAssertions + { + public StringCollectionAssertions(TCollection actualValue) { } + public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } + public FluentAssertions.AndConstraint Equal(params string[] expected) { } + public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> + { + public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + } + public class WhoseValueConstraint : FluentAssertions.AndConstraint + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } + public TValue WhoseValue { get; } + } +} +namespace FluentAssertions.Common +{ + public enum CSharpAccessModifier + { + Public = 0, + Private = 1, + Protected = 2, + Internal = 3, + ProtectedInternal = 4, + InvalidForCSharp = 5, + PrivateProtected = 6, + } + public class Configuration + { + public Configuration(FluentAssertions.Common.IConfigurationStore store) { } + public string TestFrameworkName { get; set; } + public string ValueFormatterAssembly { get; set; } + public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } + public static FluentAssertions.Common.Configuration Current { get; } + } + public static class DateTimeExtensions + { + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } + } + public interface IClock + { + void Delay(System.TimeSpan timeToDelay); + System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); + FluentAssertions.Common.ITimer StartTimer(); + } + public interface IConfigurationStore + { + string GetSetting(string name); + } + public interface IReflector + { + System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); + } + public interface ITimer : System.IDisposable + { + System.TimeSpan Elapsed { get; } + } + public static class Services + { + public static FluentAssertions.Common.Configuration Configuration { get; } + public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } + public static FluentAssertions.Common.IReflector Reflector { get; set; } + public static System.Action ThrowException { get; set; } + public static void ResetToDefaults() { } + } + public delegate FluentAssertions.Common.ITimer StartTimer(); + public enum ValueFormatterDetectionMode + { + Disabled = 0, + Specific = 1, + Scan = 2, + } +} +namespace FluentAssertions.Data +{ + public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public DataColumnAssertions(System.Data.DataColumn dataColumn) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataRow : System.Data.DataRow + { + public DataRowAssertions(TDataRow dataRow) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + } + public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataSet : System.Data.DataSet + { + public DataSetAssertions(TDataSet dataSet) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } + public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } + } + public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataTable : System.Data.DataTable + { + public DataTableAssertions(TDataTable dataTable) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } + } + public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + { + FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); + } + public enum RowMatchMode + { + Index = 0, + PrimaryKey = 1, + } +} +namespace FluentAssertions.Equivalency +{ + public class Comparands + { + public Comparands() { } + public Comparands(object subject, object expectation, System.Type compileTimeType) { } + public System.Type CompileTimeType { get; set; } + public object Expectation { get; set; } + public System.Type RuntimeType { get; } + public object Subject { get; set; } + public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public override string ToString() { } + } + public class ConversionSelector + { + public ConversionSelector() { } + public FluentAssertions.Equivalency.ConversionSelector Clone() { } + public void Exclude(System.Linq.Expressions.Expression> predicate) { } + public void Include(System.Linq.Expressions.Expression> predicate) { } + public void IncludeAll() { } + public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } + public override string ToString() { } + } + public enum CyclicReferenceHandling + { + Ignore = 0, + ThrowException = 1, + } + public enum EnumEquivalencyHandling + { + ByValue = 0, + ByName = 1, + } + public enum EqualityStrategy + { + Equals = 0, + Members = 1, + ForceEquals = 2, + ForceMembers = 3, + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + public EquivalencyAssertionOptions() { } + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> + { + public EquivalencyAssertionOptions() { } + public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } + } + public enum EquivalencyResult + { + ContinueWithNext = 0, + AssertionCompleted = 1, + } + public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + protected EquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext + { + public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.INode CurrentNode { get; } + public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + public FluentAssertions.Execution.Reason Reason { get; set; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } + public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } + public bool IsCyclicReference(object expectation) { } + public override string ToString() { } + } + public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator + { + public EquivalencyValidator() { } + public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } + public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } + } + public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; set; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public delegate string GetSubjectId(); + public interface IAssertionContext + { + string Because { get; set; } + object[] BecauseArgs { get; set; } + TSubject Expectation { get; } + FluentAssertions.Equivalency.INode SelectedNode { get; } + TSubject Subject { get; } + } + public interface IEquivalencyAssertionOptions + { + bool AllowInfiniteRecursion { get; } + bool CompareRecordsByValue { get; } + FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } + FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + bool IsRecursive { get; } + System.Collections.Generic.IEnumerable MatchingRules { get; } + FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + System.Collections.Generic.IEnumerable SelectionRules { get; } + FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + bool UseRuntimeTyping { get; } + System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } + FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); + } + public interface IEquivalencyStep + { + FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public interface IEquivalencyValidationContext + { + FluentAssertions.Equivalency.INode CurrentNode { get; } + FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + FluentAssertions.Execution.Reason Reason { get; } + FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); + FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); + bool IsCyclicReference(object expectation); + } + public interface IEquivalencyValidator + { + void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); + } + public interface IMember : FluentAssertions.Equivalency.INode + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + System.Type ReflectedType { get; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + object GetValue(object obj); + } + public interface IMemberInfo + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + string Name { get; } + string Path { get; set; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + System.Type Type { get; } + } + public interface IMemberMatchingRule + { + FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); + } + public interface IMemberSelectionRule + { + bool IncludesMembers { get; } + System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); + } + public interface INode + { + int Depth { get; } + string Description { get; } + FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } + bool IsRoot { get; } + string Name { get; set; } + string Path { get; } + string PathAndName { get; } + bool RootIsCollection { get; } + System.Type Type { get; } + } + public interface IObjectInfo + { + System.Type CompileTimeType { get; } + string Path { get; set; } + System.Type RuntimeType { get; } + System.Type Type { get; } + } + public interface IOrderingRule + { + FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); + } + public static class MemberFactory + { + public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } + } + public class MemberSelectionContext + { + public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + public System.Type Type { get; } + } + [System.Flags] + public enum MemberVisibility + { + None = 0, + Internal = 1, + Public = 2, + } + public class Node : FluentAssertions.Equivalency.INode + { + public Node() { } + public int Depth { get; } + public virtual string Description { get; } + public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } + public bool IsRoot { get; } + public string Name { get; set; } + public string Path { get; set; } + public string PathAndName { get; } + public bool RootIsCollection { get; set; } + public System.Type Type { get; set; } + public override bool Equals(object obj) { } + public override int GetHashCode() { } + public override string ToString() { } + public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } + public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } + public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } + } + public enum OrderStrictness + { + Strict = 0, + NotStrict = 1, + Irrelevant = 2, + } + public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public OrderingRuleCollection() { } + public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } + public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } + } + public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public bool CompareRecordsByValue { get; } + public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] + protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf AllowingInfiniteRecursion() { } + public TSelf ComparingByMembers(System.Type type) { } + public TSelf ComparingByMembers() { } + public TSelf ComparingByValue(System.Type type) { } + public TSelf ComparingByValue() { } + public TSelf ComparingEnumsByName() { } + public TSelf ComparingEnumsByValue() { } + public TSelf ComparingRecordsByMembers() { } + public TSelf ComparingRecordsByValue() { } + public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } + public TSelf ExcludingFields() { } + public TSelf ExcludingMissingMembers() { } + public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingProperties() { } + public TSelf IgnoringCyclicReferences() { } + public TSelf Including(System.Linq.Expressions.Expression> predicate) { } + public TSelf IncludingAllDeclaredProperties() { } + public TSelf IncludingAllRuntimeProperties() { } + public TSelf IncludingFields() { } + public TSelf IncludingInternalFields() { } + public TSelf IncludingInternalProperties() { } + public TSelf IncludingNestedObjects() { } + public TSelf IncludingProperties() { } + public TSelf RespectingDeclaredTypes() { } + public TSelf RespectingRuntimeTypes() { } + public TSelf ThrowingOnMissingMembers() { } + public override string ToString() { } + public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } + public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } + public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } + public TSelf Using() + where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } + public TSelf WithAutoConversion() { } + public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithStrictOrdering() { } + public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } + public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public void WithoutMatchingRules() { } + public void WithoutSelectionRules() { } + public TSelf WithoutStrictOrdering() { } + public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public class Restriction + { + public Restriction(TSelf options, System.Action> action) { } + public TSelf When(System.Linq.Expressions.Expression> predicate) { } + public TSelf WhenTypeIs() + where TMemberType : TMember { } + } + } + public static class SubjectInfoExtensions + { + public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + } +} +namespace FluentAssertions.Equivalency.Steps +{ + public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AutoConversionStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataColumnEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRelationEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataSetEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataTableEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DictionaryEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumEqualityStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericDictionaryEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericEnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ReferenceEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public RunAllUserStepsEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public SimpleEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StringEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StructuralEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ValueTypeEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XAttributeEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XDocumentEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XElementEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } +} +namespace FluentAssertions.Equivalency.Tracing +{ + public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); + public interface ITraceWriter + { + System.IDisposable AddBlock(string trace); + void AddSingle(string trace); + string ToString(); + } + public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter + { + public StringBuilderTraceWriter() { } + public System.IDisposable AddBlock(string trace) { } + public void AddSingle(string trace) { } + public override string ToString() { } + } + public class Tracer + { + public override string ToString() { } + public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + } +} +namespace FluentAssertions.Events +{ + public class EventAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + { + protected EventAssertions(FluentAssertions.Events.IMonitor monitor) { } + protected override string Identifier { get; } + public void NotRaise(string eventName, string because = "", params object[] becauseArgs) { } + public void NotRaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Events.IEventRecording Raise(string eventName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Events.IEventRecording RaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + } + public class EventMetadata + { + public EventMetadata(string eventName, System.Type handlerType) { } + public string EventName { get; } + public System.Type HandlerType { get; } + } + public interface IEventRecording : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + System.Type EventHandlerType { get; } + string EventName { get; } + object EventObject { get; } + } + public interface IMonitor : System.IDisposable + { + FluentAssertions.Events.EventMetadata[] MonitoredEvents { get; } + FluentAssertions.Events.OccurredEvent[] OccurredEvents { get; } + T Subject { get; } + void Clear(); + FluentAssertions.Events.IEventRecording GetRecordingFor(string eventName); + FluentAssertions.Events.EventAssertions Should(); + } + public class OccurredEvent + { + public OccurredEvent() { } + public string EventName { get; set; } + public object[] Parameters { get; set; } + public int Sequence { get; set; } + public System.DateTime TimestampUtc { get; set; } + } +} +namespace FluentAssertions.Execution +{ + [System.Serializable] + public class AssertionFailedException : System.Exception + { + public AssertionFailedException(string message) { } + protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } + public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public AssertionScope() { } + public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } + public AssertionScope(System.Lazy context) { } + public AssertionScope(string context) { } + public string CallerIdentity { get; } + public System.Lazy Context { get; set; } + public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } + public static FluentAssertions.Execution.AssertionScope Current { get; } + public void AddNonReportable(string key, object value) { } + public void AddPreFormattedFailure(string formattedFailureMessage) { } + public void AddReportable(string key, System.Func valueFunc) { } + public void AddReportable(string key, string value) { } + public void AppendTracing(string tracingBlock) { } + public void AssumeSingleCaller() { } + public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } + public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } + public T Get(string key) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public bool HasFailures() { } + public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } + } + public class Continuation + { + public FluentAssertions.Execution.IAssertionScope Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } + } + public class ContinuationOfGiven + { + public FluentAssertions.Execution.GivenSelector Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } + } + public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } + } + public static class Execute + { + public static FluentAssertions.Execution.AssertionScope Assertion { get; } + } + public class FailReason + { + public FailReason(string message, params object[] args) { } + public object[] Args { get; } + public string Message { get; } + } + public class GivenSelector + { + public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + } + public interface IAssertionScope : System.IDisposable + { + FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); + FluentAssertions.Execution.Continuation ClearExpectation(); + string[] Discard(); + FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); + FluentAssertions.Execution.Continuation FailWith(string message); + FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); + FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); + FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); + FluentAssertions.Execution.GivenSelector Given(System.Func selector); + FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); + FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); + } + public interface IAssertionStrategy + { + System.Collections.Generic.IEnumerable FailureMessages { get; } + System.Collections.Generic.IEnumerable DiscardFailures(); + void HandleFailure(string message); + void ThrowIfAny(System.Collections.Generic.IDictionary context); + } + public interface ICloneable2 + { + object Clone(); + } + public class Reason + { + public Reason(string formattedMessage, object[] arguments) { } + public object[] Arguments { get; set; } + public string FormattedMessage { get; set; } + } +} +namespace FluentAssertions.Extensions +{ + public static class FluentDateTimeExtensions + { + public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } + public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } + public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } + public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } + public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime April(this int day, int year) { } + public static System.DateTime AsLocal(this System.DateTime dateTime) { } + public static System.DateTime AsUtc(this System.DateTime dateTime) { } + public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } + public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTime August(this int day, int year) { } + public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime December(this int day, int year) { } + public static System.DateTime February(this int day, int year) { } + public static System.DateTime January(this int day, int year) { } + public static System.DateTime July(this int day, int year) { } + public static System.DateTime June(this int day, int year) { } + public static System.DateTime March(this int day, int year) { } + public static System.DateTime May(this int day, int year) { } + public static int Microsecond(this System.DateTime self) { } + public static int Microsecond(this System.DateTimeOffset self) { } + public static int Nanosecond(this System.DateTime self) { } + public static int Nanosecond(this System.DateTimeOffset self) { } + public static System.DateTime November(this int day, int year) { } + public static System.DateTime October(this int day, int year) { } + public static System.DateTime September(this int day, int year) { } + public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } + } + public static class FluentTimeSpanExtensions + { + public const long TicksPerMicrosecond = 10; + public const double TicksPerNanosecond = 0.01D; + public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } + public static System.TimeSpan Days(this double days) { } + public static System.TimeSpan Days(this int days) { } + public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } + public static System.TimeSpan Hours(this double hours) { } + public static System.TimeSpan Hours(this int hours) { } + public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } + public static int Microseconds(this System.TimeSpan self) { } + public static System.TimeSpan Microseconds(this int microseconds) { } + public static System.TimeSpan Microseconds(this long microseconds) { } + public static System.TimeSpan Milliseconds(this double milliseconds) { } + public static System.TimeSpan Milliseconds(this int milliseconds) { } + public static System.TimeSpan Minutes(this double minutes) { } + public static System.TimeSpan Minutes(this int minutes) { } + public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } + public static int Nanoseconds(this System.TimeSpan self) { } + public static System.TimeSpan Nanoseconds(this int nanoseconds) { } + public static System.TimeSpan Nanoseconds(this long nanoseconds) { } + public static System.TimeSpan Seconds(this double seconds) { } + public static System.TimeSpan Seconds(this int seconds) { } + public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } + public static System.TimeSpan Ticks(this int ticks) { } + public static System.TimeSpan Ticks(this long ticks) { } + public static double TotalMicroseconds(this System.TimeSpan self) { } + public static double TotalNanoseconds(this System.TimeSpan self) { } + } +} +namespace FluentAssertions.Formatting +{ + public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AggregateExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AttributeBasedFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DateTimeOffsetValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DecimalValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DefaultValueFormatter() { } + protected virtual int SpacesPerIndentionLevel { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } + protected virtual string TypeDisplayName(System.Type type) { } + } + public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DictionaryValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DoubleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumValueFormatter() { } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumerableValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); + public class FormattedObjectGraph + { + public FormattedObjectGraph(int maxLines) { } + public int LineCount { get; } + public static int SpacesPerIndentation { get; } + public void AddFragment(string fragment) { } + public void AddFragmentOnNewLine(string fragment) { } + public void AddLine(string line) { } + public override string ToString() { } + public System.IDisposable WithIndentation() { } + } + public static class Formatter + { + public static System.Collections.Generic.IEnumerable Formatters { get; } + public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } + } + public class FormattingContext + { + public FormattingContext() { } + public bool UseLineBreaks { get; set; } + } + public class FormattingOptions + { + public FormattingOptions() { } + public int MaxDepth { get; set; } + public int MaxLines { get; set; } + public bool UseLineBreaks { get; set; } + } + public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public GuidValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public interface IValueFormatter + { + bool CanHandle(object value); + void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); + } + public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class MaxLinesExceededException : System.Exception + { + public MaxLinesExceededException() { } + public MaxLinesExceededException(string message) { } + public MaxLinesExceededException(string message, System.Exception innerException) { } + } + public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter + { + public MultidimensionalArrayFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public NullValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PredicateLambdaExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PropertyInfoFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SingleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public StringValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TaskFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TimeSpanValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class ValueFormatterAttribute : System.Attribute + { + public ValueFormatterAttribute() { } + } + public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XAttributeValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XDocumentValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XElementValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlReaderValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} +namespace FluentAssertions.Numeric +{ + public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> + { + public ComparableTypeAssertions(System.IComparable value) { } + } + public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> + where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions + { + public ComparableTypeAssertions(System.IComparable value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> + where T : struct, System.IComparable + { + public NullableNumericAssertions(T? value) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions + { + public NullableNumericAssertions(T? value) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> + where T : struct, System.IComparable + { + public NumericAssertions(T value) { } + } + public class NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions + { + public NumericAssertions(T value) { } + public T? Subject { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Primitives +{ + public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + } + public class BooleanAssertions + where TAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + public bool? Subject { get; } + public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + } + public class DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + public System.DateTime? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + } + public class DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + public System.DateTimeOffset? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class DateTimeRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> + where TEnum : struct, System.Enum + { + public EnumAssertions(TEnum subject) { } + } + public class EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions + { + public EnumAssertions(TEnum subject) { } + public TEnum? Subject { get; } + public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } + } + public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + } + public class GuidAssertions + where TAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + public System.Guid? Subject { get; } + public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions + where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> + where TEnum : struct, System.Enum + { + public NullableEnumAssertions(TEnum? subject) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions + { + public NullableEnumAssertions(TEnum? subject) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions + where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(object value) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(TSubject value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public abstract class ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + protected ReferenceTypeAssertions(TSubject subject) { } + protected abstract string Identifier { get; } + public TSubject Subject { get; } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where T : TSubject { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } + } + public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + public System.TimeSpan? Subject { get; } + public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + } + public class StringAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + } + public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAll(params string[] values) { } + public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAny(params string[] values) { } + public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + } + public enum TimeSpanCondition + { + MoreThan = 0, + AtLeast = 1, + Exactly = 2, + Within = 3, + LessThan = 4, + } +} +namespace FluentAssertions.Reflection +{ + public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public AssemblyAssertions(System.Reflection.Assembly assembly) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Specialized +{ + public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions + { + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + } + public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> + where TTask : System.Threading.Tasks.Task + where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + { + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertions + { + protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } + protected abstract void InvokeSubject(); + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> + where TException : System.Exception + { + public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } + public TException And { get; } + protected override string Identifier { get; } + public TException Which { get; } + public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class ExecutionTime + { + public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } + public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + } + public class ExecutionTimeAssertions + { + public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> + { + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + } + public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> + { + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } + } + public interface IExtractExceptions + { + System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception; + } + public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime + { + public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } + } + public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + } + public class TaskCompletionSourceAssertions + { + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Streams +{ + public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + } + public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions + where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class StreamAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(System.IO.Stream stream) { } + } + public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.IO.Stream + where TAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(TSubject stream) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Types +{ + public static class AllTypes + { + public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } + } + public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } + protected override string Identifier { get; } + } + public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Reflection.MemberInfo + where TAssertions : FluentAssertions.Types.MemberInfoAssertions + { + protected MemberInfoAssertions(TSubject subject) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + } + public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions + where TSubject : System.Reflection.MethodBase + where TAssertions : FluentAssertions.Types.MethodBaseAssertions + { + protected MethodBaseAssertions(TSubject subject) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + } + public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } + } + public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } + public MethodInfoSelector(System.Type type) { } + public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } + public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } + public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } + public System.Reflection.MethodInfo[] ToArray() { } + } + public class MethodInfoSelectorAssertions + { + public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectMethods { get; } + public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions + { + public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } + public PropertyInfoSelector(System.Type type) { } + public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } + public FluentAssertions.Types.PropertyInfoSelector OfType() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public System.Reflection.PropertyInfo[] ToArray() { } + } + public class PropertyInfoSelectorAssertions + { + public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectProperties { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + } + public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public TypeAssertions(System.Type type) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) + where TInterface : class { } + } + public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public TypeSelector(System.Collections.Generic.IEnumerable types) { } + public TypeSelector(System.Type type) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ThatAreClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } + public FluentAssertions.Types.TypeSelector ThatImplement() { } + public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } + public System.Type[] ToArray() { } + public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } + public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } + } + public class TypeSelectorAssertions + { + public TypeSelectorAssertions(params System.Type[] types) { } + public System.Collections.Generic.IEnumerable Subject { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Xml +{ + public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } + } + public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XDocumentAssertions(System.Xml.Linq.XDocument document) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + } + public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XElementAssertions(System.Xml.Linq.XElement xElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } + } + public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Xml.XmlNode + where TAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(TSubject xmlNode) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlNodeFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} \ No newline at end of file diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt new file mode 100644 index 0000000000..9a95d6f0ff --- /dev/null +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt @@ -0,0 +1,2643 @@ +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName="")] +namespace FluentAssertions +{ + public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions + { + public AggregateExceptionExtractor() { } + public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception { } + } + public class AndConstraint + { + public AndConstraint(T parentConstraint) { } + public T And { get; } + } + public class AndWhichConstraint : FluentAssertions.AndConstraint + { + public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } + public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } + public TMatchedElement Subject { get; } + public TMatchedElement Which { get; } + } + public static class AssertionExtensions + { + public static TTo As(this object subject) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Action Enumerating(this System.Func enumerable) { } + public static System.Action Enumerating(this System.Func> enumerable) { } + public static System.Action Enumerating(this T subject, System.Func> enumerable) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static System.Action Invoking(this T subject, System.Action action) { } + public static System.Func Invoking(this T subject, System.Func action) { } + public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } + public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } + public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } + public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } + public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } + public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } + public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } + public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } + public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } + public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } + public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } + public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } + public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } + public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } + public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } + public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } + public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } + public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } + public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } + public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } + public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } + public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } + public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } + public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } + public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } + public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } + public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) + where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.GuidAssertions _) + where TAssertions : FluentAssertions.Primitives.GuidAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } + public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } + public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } + public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } + public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Numeric.NumericAssertions _) + where TSubject : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.EnumAssertions _) + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } + public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) + where TCollection : System.Collections.Generic.IEnumerable> { } + } + public static class AssertionOptions + { + public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } + public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } + public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } + } + public static class AsyncAssertionsExtensions + { + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + } + public static class AtLeast + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class AtMost + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class CallerIdentifier + { + public static System.Action Logger { get; set; } + public static string DetermineCallerIdentity() { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class CustomAssertionAttribute : System.Attribute + { + public CustomAssertionAttribute() { } + } + public static class DataRowAssertionExtensions + { + public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) + where TDataRow : System.Data.DataRow { } + } + public static class DataSetAssertionExtensions + { + public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) + where TDataSet : System.Data.DataSet { } + } + public static class DataTableAssertionExtensions + { + public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) + where TDataTable : System.Data.DataTable { } + } + public static class EnumAssertionsExtensions + { + public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) + where TEnum : struct, System.Enum { } + public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) + where TEnum : struct, System.Enum { } + } + public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public EquivalencyPlan() { } + public void Add() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void AddAfter() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Clear() { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public void Insert() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void InsertBefore() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Remove() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } + public void Reset() { } + } + public static class Exactly + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class ExceptionAssertionsExtensions + { + public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + } + public static class FluentActions + { + public static System.Func Awaiting(System.Func action) { } + public static System.Func> Awaiting(System.Func> func) { } + public static System.Action Enumerating(System.Func enumerable) { } + public static System.Action Enumerating(System.Func> enumerable) { } + public static System.Action Invoking(System.Action action) { } + public static System.Func Invoking(System.Func func) { } + } + public static class LessThan + { + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class MoreThan + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class NumericAssertionsExtensions + { + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + } + public static class ObjectAssertionsExtensions + { + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + } + public abstract class OccurrenceConstraint + { + protected OccurrenceConstraint(int expectedCount) { } + } + public static class TypeEnumerableExtensions + { + public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } + public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } + } + public static class TypeExtensions + { + public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } + } + public static class XmlAssertionExtensions + { + public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } + public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } + } +} +namespace FluentAssertions.Collections +{ + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> + { + public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public GenericCollectionAssertions(TCollection actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions + { + public GenericCollectionAssertions(TCollection actualValue) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } + public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(params T[] elements) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } + public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where TKey : class { } + public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } + public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } + public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } + public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } + public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } + public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } + public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + { + public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public StringCollectionAssertions(TCollection actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.StringCollectionAssertions + { + public StringCollectionAssertions(TCollection actualValue) { } + public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } + public FluentAssertions.AndConstraint Equal(params string[] expected) { } + public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> + { + public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + } + public class WhoseValueConstraint : FluentAssertions.AndConstraint + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } + public TValue WhoseValue { get; } + } +} +namespace FluentAssertions.Common +{ + public enum CSharpAccessModifier + { + Public = 0, + Private = 1, + Protected = 2, + Internal = 3, + ProtectedInternal = 4, + InvalidForCSharp = 5, + PrivateProtected = 6, + } + public class Configuration + { + public Configuration(FluentAssertions.Common.IConfigurationStore store) { } + public string TestFrameworkName { get; set; } + public string ValueFormatterAssembly { get; set; } + public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } + public static FluentAssertions.Common.Configuration Current { get; } + } + public static class DateTimeExtensions + { + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } + } + public interface IClock + { + void Delay(System.TimeSpan timeToDelay); + System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); + FluentAssertions.Common.ITimer StartTimer(); + } + public interface IConfigurationStore + { + string GetSetting(string name); + } + public interface IReflector + { + System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); + } + public interface ITimer : System.IDisposable + { + System.TimeSpan Elapsed { get; } + } + public static class Services + { + public static FluentAssertions.Common.Configuration Configuration { get; } + public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } + public static FluentAssertions.Common.IReflector Reflector { get; set; } + public static System.Action ThrowException { get; set; } + public static void ResetToDefaults() { } + } + public delegate FluentAssertions.Common.ITimer StartTimer(); + public enum ValueFormatterDetectionMode + { + Disabled = 0, + Specific = 1, + Scan = 2, + } +} +namespace FluentAssertions.Data +{ + public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public DataColumnAssertions(System.Data.DataColumn dataColumn) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataRow : System.Data.DataRow + { + public DataRowAssertions(TDataRow dataRow) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + } + public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataSet : System.Data.DataSet + { + public DataSetAssertions(TDataSet dataSet) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } + public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } + } + public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataTable : System.Data.DataTable + { + public DataTableAssertions(TDataTable dataTable) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } + } + public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + { + FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); + } + public enum RowMatchMode + { + Index = 0, + PrimaryKey = 1, + } +} +namespace FluentAssertions.Equivalency +{ + public class Comparands + { + public Comparands() { } + public Comparands(object subject, object expectation, System.Type compileTimeType) { } + public System.Type CompileTimeType { get; set; } + public object Expectation { get; set; } + public System.Type RuntimeType { get; } + public object Subject { get; set; } + public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public override string ToString() { } + } + public class ConversionSelector + { + public ConversionSelector() { } + public FluentAssertions.Equivalency.ConversionSelector Clone() { } + public void Exclude(System.Linq.Expressions.Expression> predicate) { } + public void Include(System.Linq.Expressions.Expression> predicate) { } + public void IncludeAll() { } + public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } + public override string ToString() { } + } + public enum CyclicReferenceHandling + { + Ignore = 0, + ThrowException = 1, + } + public enum EnumEquivalencyHandling + { + ByValue = 0, + ByName = 1, + } + public enum EqualityStrategy + { + Equals = 0, + Members = 1, + ForceEquals = 2, + ForceMembers = 3, + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + public EquivalencyAssertionOptions() { } + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> + { + public EquivalencyAssertionOptions() { } + public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } + } + public enum EquivalencyResult + { + ContinueWithNext = 0, + AssertionCompleted = 1, + } + public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + protected EquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext + { + public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.INode CurrentNode { get; } + public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + public FluentAssertions.Execution.Reason Reason { get; set; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } + public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } + public bool IsCyclicReference(object expectation) { } + public override string ToString() { } + } + public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator + { + public EquivalencyValidator() { } + public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } + public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } + } + public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; set; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public delegate string GetSubjectId(); + public interface IAssertionContext + { + string Because { get; set; } + object[] BecauseArgs { get; set; } + TSubject Expectation { get; } + FluentAssertions.Equivalency.INode SelectedNode { get; } + TSubject Subject { get; } + } + public interface IEquivalencyAssertionOptions + { + bool AllowInfiniteRecursion { get; } + bool CompareRecordsByValue { get; } + FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } + FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + bool IsRecursive { get; } + System.Collections.Generic.IEnumerable MatchingRules { get; } + FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + System.Collections.Generic.IEnumerable SelectionRules { get; } + FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + bool UseRuntimeTyping { get; } + System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } + FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); + } + public interface IEquivalencyStep + { + FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public interface IEquivalencyValidationContext + { + FluentAssertions.Equivalency.INode CurrentNode { get; } + FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + FluentAssertions.Execution.Reason Reason { get; } + FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); + FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); + bool IsCyclicReference(object expectation); + } + public interface IEquivalencyValidator + { + void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); + } + public interface IMember : FluentAssertions.Equivalency.INode + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + System.Type ReflectedType { get; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + object GetValue(object obj); + } + public interface IMemberInfo + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + string Name { get; } + string Path { get; set; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + System.Type Type { get; } + } + public interface IMemberMatchingRule + { + FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); + } + public interface IMemberSelectionRule + { + bool IncludesMembers { get; } + System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); + } + public interface INode + { + int Depth { get; } + string Description { get; } + FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } + bool IsRoot { get; } + string Name { get; set; } + string Path { get; } + string PathAndName { get; } + bool RootIsCollection { get; } + System.Type Type { get; } + } + public interface IObjectInfo + { + System.Type CompileTimeType { get; } + string Path { get; set; } + System.Type RuntimeType { get; } + System.Type Type { get; } + } + public interface IOrderingRule + { + FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); + } + public static class MemberFactory + { + public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } + } + public class MemberSelectionContext + { + public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + public System.Type Type { get; } + } + [System.Flags] + public enum MemberVisibility + { + None = 0, + Internal = 1, + Public = 2, + } + public class Node : FluentAssertions.Equivalency.INode + { + public Node() { } + public int Depth { get; } + public virtual string Description { get; } + public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } + public bool IsRoot { get; } + public string Name { get; set; } + public string Path { get; set; } + public string PathAndName { get; } + public bool RootIsCollection { get; set; } + public System.Type Type { get; set; } + public override bool Equals(object obj) { } + public override int GetHashCode() { } + public override string ToString() { } + public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } + public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } + public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } + } + public enum OrderStrictness + { + Strict = 0, + NotStrict = 1, + Irrelevant = 2, + } + public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public OrderingRuleCollection() { } + public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } + public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } + } + public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public bool CompareRecordsByValue { get; } + public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] + protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf AllowingInfiniteRecursion() { } + public TSelf ComparingByMembers(System.Type type) { } + public TSelf ComparingByMembers() { } + public TSelf ComparingByValue(System.Type type) { } + public TSelf ComparingByValue() { } + public TSelf ComparingEnumsByName() { } + public TSelf ComparingEnumsByValue() { } + public TSelf ComparingRecordsByMembers() { } + public TSelf ComparingRecordsByValue() { } + public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } + public TSelf ExcludingFields() { } + public TSelf ExcludingMissingMembers() { } + public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingProperties() { } + public TSelf IgnoringCyclicReferences() { } + public TSelf Including(System.Linq.Expressions.Expression> predicate) { } + public TSelf IncludingAllDeclaredProperties() { } + public TSelf IncludingAllRuntimeProperties() { } + public TSelf IncludingFields() { } + public TSelf IncludingInternalFields() { } + public TSelf IncludingInternalProperties() { } + public TSelf IncludingNestedObjects() { } + public TSelf IncludingProperties() { } + public TSelf RespectingDeclaredTypes() { } + public TSelf RespectingRuntimeTypes() { } + public TSelf ThrowingOnMissingMembers() { } + public override string ToString() { } + public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } + public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } + public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } + public TSelf Using() + where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } + public TSelf WithAutoConversion() { } + public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithStrictOrdering() { } + public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } + public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public void WithoutMatchingRules() { } + public void WithoutSelectionRules() { } + public TSelf WithoutStrictOrdering() { } + public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public class Restriction + { + public Restriction(TSelf options, System.Action> action) { } + public TSelf When(System.Linq.Expressions.Expression> predicate) { } + public TSelf WhenTypeIs() + where TMemberType : TMember { } + } + } + public static class SubjectInfoExtensions + { + public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + } +} +namespace FluentAssertions.Equivalency.Steps +{ + public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AutoConversionStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataColumnEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRelationEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataSetEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataTableEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DictionaryEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumEqualityStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericDictionaryEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericEnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ReferenceEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public RunAllUserStepsEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public SimpleEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StringEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StructuralEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ValueTypeEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XAttributeEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XDocumentEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XElementEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } +} +namespace FluentAssertions.Equivalency.Tracing +{ + public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); + public interface ITraceWriter + { + System.IDisposable AddBlock(string trace); + void AddSingle(string trace); + string ToString(); + } + public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter + { + public StringBuilderTraceWriter() { } + public System.IDisposable AddBlock(string trace) { } + public void AddSingle(string trace) { } + public override string ToString() { } + } + public class Tracer + { + public override string ToString() { } + public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + } +} +namespace FluentAssertions.Execution +{ + [System.Serializable] + public class AssertionFailedException : System.Exception + { + public AssertionFailedException(string message) { } + protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } + public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public AssertionScope() { } + public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } + public AssertionScope(System.Lazy context) { } + public AssertionScope(string context) { } + public string CallerIdentity { get; } + public System.Lazy Context { get; set; } + public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } + public static FluentAssertions.Execution.AssertionScope Current { get; } + public void AddNonReportable(string key, object value) { } + public void AddPreFormattedFailure(string formattedFailureMessage) { } + public void AddReportable(string key, System.Func valueFunc) { } + public void AddReportable(string key, string value) { } + public void AppendTracing(string tracingBlock) { } + public void AssumeSingleCaller() { } + public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } + public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } + public T Get(string key) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public bool HasFailures() { } + public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } + } + public class Continuation + { + public FluentAssertions.Execution.IAssertionScope Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } + } + public class ContinuationOfGiven + { + public FluentAssertions.Execution.GivenSelector Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } + } + public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } + } + public static class Execute + { + public static FluentAssertions.Execution.AssertionScope Assertion { get; } + } + public class FailReason + { + public FailReason(string message, params object[] args) { } + public object[] Args { get; } + public string Message { get; } + } + public class GivenSelector + { + public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + } + public interface IAssertionScope : System.IDisposable + { + FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); + FluentAssertions.Execution.Continuation ClearExpectation(); + string[] Discard(); + FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); + FluentAssertions.Execution.Continuation FailWith(string message); + FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); + FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); + FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); + FluentAssertions.Execution.GivenSelector Given(System.Func selector); + FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); + FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); + } + public interface IAssertionStrategy + { + System.Collections.Generic.IEnumerable FailureMessages { get; } + System.Collections.Generic.IEnumerable DiscardFailures(); + void HandleFailure(string message); + void ThrowIfAny(System.Collections.Generic.IDictionary context); + } + public interface ICloneable2 + { + object Clone(); + } + public class Reason + { + public Reason(string formattedMessage, object[] arguments) { } + public object[] Arguments { get; set; } + public string FormattedMessage { get; set; } + } +} +namespace FluentAssertions.Extensions +{ + public static class FluentDateTimeExtensions + { + public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } + public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } + public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } + public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } + public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime April(this int day, int year) { } + public static System.DateTime AsLocal(this System.DateTime dateTime) { } + public static System.DateTime AsUtc(this System.DateTime dateTime) { } + public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } + public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTime August(this int day, int year) { } + public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime December(this int day, int year) { } + public static System.DateTime February(this int day, int year) { } + public static System.DateTime January(this int day, int year) { } + public static System.DateTime July(this int day, int year) { } + public static System.DateTime June(this int day, int year) { } + public static System.DateTime March(this int day, int year) { } + public static System.DateTime May(this int day, int year) { } + public static int Microsecond(this System.DateTime self) { } + public static int Microsecond(this System.DateTimeOffset self) { } + public static int Nanosecond(this System.DateTime self) { } + public static int Nanosecond(this System.DateTimeOffset self) { } + public static System.DateTime November(this int day, int year) { } + public static System.DateTime October(this int day, int year) { } + public static System.DateTime September(this int day, int year) { } + public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } + } + public static class FluentTimeSpanExtensions + { + public const long TicksPerMicrosecond = 10; + public const double TicksPerNanosecond = 0.01D; + public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } + public static System.TimeSpan Days(this double days) { } + public static System.TimeSpan Days(this int days) { } + public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } + public static System.TimeSpan Hours(this double hours) { } + public static System.TimeSpan Hours(this int hours) { } + public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } + public static int Microseconds(this System.TimeSpan self) { } + public static System.TimeSpan Microseconds(this int microseconds) { } + public static System.TimeSpan Microseconds(this long microseconds) { } + public static System.TimeSpan Milliseconds(this double milliseconds) { } + public static System.TimeSpan Milliseconds(this int milliseconds) { } + public static System.TimeSpan Minutes(this double minutes) { } + public static System.TimeSpan Minutes(this int minutes) { } + public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } + public static int Nanoseconds(this System.TimeSpan self) { } + public static System.TimeSpan Nanoseconds(this int nanoseconds) { } + public static System.TimeSpan Nanoseconds(this long nanoseconds) { } + public static System.TimeSpan Seconds(this double seconds) { } + public static System.TimeSpan Seconds(this int seconds) { } + public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } + public static System.TimeSpan Ticks(this int ticks) { } + public static System.TimeSpan Ticks(this long ticks) { } + public static double TotalMicroseconds(this System.TimeSpan self) { } + public static double TotalNanoseconds(this System.TimeSpan self) { } + } +} +namespace FluentAssertions.Formatting +{ + public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AggregateExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AttributeBasedFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DateTimeOffsetValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DecimalValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DefaultValueFormatter() { } + protected virtual int SpacesPerIndentionLevel { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } + protected virtual string TypeDisplayName(System.Type type) { } + } + public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DictionaryValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DoubleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumValueFormatter() { } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumerableValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); + public class FormattedObjectGraph + { + public FormattedObjectGraph(int maxLines) { } + public int LineCount { get; } + public static int SpacesPerIndentation { get; } + public void AddFragment(string fragment) { } + public void AddFragmentOnNewLine(string fragment) { } + public void AddLine(string line) { } + public override string ToString() { } + public System.IDisposable WithIndentation() { } + } + public static class Formatter + { + public static System.Collections.Generic.IEnumerable Formatters { get; } + public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } + } + public class FormattingContext + { + public FormattingContext() { } + public bool UseLineBreaks { get; set; } + } + public class FormattingOptions + { + public FormattingOptions() { } + public int MaxDepth { get; set; } + public int MaxLines { get; set; } + public bool UseLineBreaks { get; set; } + } + public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public GuidValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public interface IValueFormatter + { + bool CanHandle(object value); + void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); + } + public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class MaxLinesExceededException : System.Exception + { + public MaxLinesExceededException() { } + public MaxLinesExceededException(string message) { } + public MaxLinesExceededException(string message, System.Exception innerException) { } + } + public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter + { + public MultidimensionalArrayFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public NullValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PredicateLambdaExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PropertyInfoFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SingleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public StringValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TaskFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TimeSpanValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class ValueFormatterAttribute : System.Attribute + { + public ValueFormatterAttribute() { } + } + public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XAttributeValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XDocumentValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XElementValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlReaderValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} +namespace FluentAssertions.Numeric +{ + public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> + { + public ComparableTypeAssertions(System.IComparable value) { } + } + public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> + where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions + { + public ComparableTypeAssertions(System.IComparable value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> + where T : struct, System.IComparable + { + public NullableNumericAssertions(T? value) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions + { + public NullableNumericAssertions(T? value) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> + where T : struct, System.IComparable + { + public NumericAssertions(T value) { } + } + public class NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions + { + public NumericAssertions(T value) { } + public T? Subject { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Primitives +{ + public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + } + public class BooleanAssertions + where TAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + public bool? Subject { get; } + public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + } + public class DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + public System.DateTime? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + } + public class DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + public System.DateTimeOffset? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class DateTimeRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> + where TEnum : struct, System.Enum + { + public EnumAssertions(TEnum subject) { } + } + public class EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions + { + public EnumAssertions(TEnum subject) { } + public TEnum? Subject { get; } + public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } + } + public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + } + public class GuidAssertions + where TAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + public System.Guid? Subject { get; } + public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions + where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> + where TEnum : struct, System.Enum + { + public NullableEnumAssertions(TEnum? subject) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions + { + public NullableEnumAssertions(TEnum? subject) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions + where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(object value) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(TSubject value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public abstract class ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + protected ReferenceTypeAssertions(TSubject subject) { } + protected abstract string Identifier { get; } + public TSubject Subject { get; } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where T : TSubject { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } + } + public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + public System.TimeSpan? Subject { get; } + public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + } + public class StringAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + } + public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAll(params string[] values) { } + public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAny(params string[] values) { } + public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + } + public enum TimeSpanCondition + { + MoreThan = 0, + AtLeast = 1, + Exactly = 2, + Within = 3, + LessThan = 4, + } +} +namespace FluentAssertions.Reflection +{ + public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public AssemblyAssertions(System.Reflection.Assembly assembly) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Specialized +{ + public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions + { + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + } + public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> + where TTask : System.Threading.Tasks.Task + where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + { + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertions + { + protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } + protected abstract void InvokeSubject(); + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> + where TException : System.Exception + { + public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } + public TException And { get; } + protected override string Identifier { get; } + public TException Which { get; } + public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class ExecutionTime + { + public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } + public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + } + public class ExecutionTimeAssertions + { + public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> + { + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + } + public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> + { + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } + } + public interface IExtractExceptions + { + System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception; + } + public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime + { + public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } + } + public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + } + public class TaskCompletionSourceAssertions + { + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Streams +{ + public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + } + public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions + where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + protected override string Identifier { get; } + } + public class StreamAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(System.IO.Stream stream) { } + } + public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.IO.Stream + where TAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(TSubject stream) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Types +{ + public static class AllTypes + { + public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } + } + public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } + protected override string Identifier { get; } + } + public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Reflection.MemberInfo + where TAssertions : FluentAssertions.Types.MemberInfoAssertions + { + protected MemberInfoAssertions(TSubject subject) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + } + public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions + where TSubject : System.Reflection.MethodBase + where TAssertions : FluentAssertions.Types.MethodBaseAssertions + { + protected MethodBaseAssertions(TSubject subject) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + } + public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } + } + public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } + public MethodInfoSelector(System.Type type) { } + public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } + public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } + public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } + public System.Reflection.MethodInfo[] ToArray() { } + } + public class MethodInfoSelectorAssertions + { + public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectMethods { get; } + public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions + { + public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } + public PropertyInfoSelector(System.Type type) { } + public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } + public FluentAssertions.Types.PropertyInfoSelector OfType() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public System.Reflection.PropertyInfo[] ToArray() { } + } + public class PropertyInfoSelectorAssertions + { + public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectProperties { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + } + public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public TypeAssertions(System.Type type) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) + where TInterface : class { } + } + public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public TypeSelector(System.Collections.Generic.IEnumerable types) { } + public TypeSelector(System.Type type) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ThatAreClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } + public FluentAssertions.Types.TypeSelector ThatImplement() { } + public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } + public System.Type[] ToArray() { } + public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } + public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } + } + public class TypeSelectorAssertions + { + public TypeSelectorAssertions(params System.Type[] types) { } + public System.Collections.Generic.IEnumerable Subject { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Xml +{ + public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } + } + public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XDocumentAssertions(System.Xml.Linq.XDocument document) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + } + public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XElementAssertions(System.Xml.Linq.XElement xElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } + } + public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Xml.XmlNode + where TAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(TSubject xmlNode) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlNodeFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} \ No newline at end of file diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt new file mode 100644 index 0000000000..cefe068a24 --- /dev/null +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt @@ -0,0 +1,2693 @@ +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/fluentassertions/fluentassertions")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Equivalency.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"FluentAssertions.Specs, PublicKey=00240000048000009400000006020000002400005253413100040000010001002d25ff515c85b13ba08f61d466cff5d80a7f28ba197bbf8796085213e7a3406f970d2a4874932fed35db546e89af2da88c194bf1b7f7ac70de7988c78406f7629c547283061282a825616eb7eb48a9514a7570942936020a9bb37dca9ff60b778309900851575614491c6d25018fadb75828f4c7a17bf2d7dc86e7b6eafc5d8f")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName="")] +namespace FluentAssertions +{ + public class AggregateExceptionExtractor : FluentAssertions.Specialized.IExtractExceptions + { + public AggregateExceptionExtractor() { } + public System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception { } + } + public class AndConstraint + { + public AndConstraint(T parentConstraint) { } + public T And { get; } + } + public class AndWhichConstraint : FluentAssertions.AndConstraint + { + public AndWhichConstraint(TParentConstraint parentConstraint, System.Collections.Generic.IEnumerable matchedConstraint) { } + public AndWhichConstraint(TParentConstraint parentConstraint, TMatchedElement matchedConstraint) { } + public TMatchedElement Subject { get; } + public TMatchedElement Which { get; } + } + public static class AssertionExtensions + { + public static TTo As(this object subject) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func Awaiting(this T subject, System.Func action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Func> Awaiting(this T subject, System.Func> action) { } + public static System.Action Enumerating(this System.Func enumerable) { } + public static System.Action Enumerating(this System.Func> enumerable) { } + public static System.Action Enumerating(this T subject, System.Func> enumerable) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Func action) { } + public static FluentAssertions.Specialized.ExecutionTime ExecutionTime(this System.Action action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static FluentAssertions.Specialized.MemberExecutionTime ExecutionTimeOf(this T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer = null) { } + public static System.Action Invoking(this T subject, System.Action action) { } + public static System.Func Invoking(this T subject, System.Func action) { } + public static FluentAssertions.Events.IMonitor Monitor(this T eventSource, System.Func utcNow = null) { } + public static FluentAssertions.Specialized.ExecutionTimeAssertions Should(this FluentAssertions.Specialized.ExecutionTime executionTime) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.ExecutionTimeAssertions _) { } + public static FluentAssertions.Types.MethodInfoSelectorAssertions Should(this FluentAssertions.Types.MethodInfoSelector methodSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.MethodInfoSelectorAssertions _) { } + public static FluentAssertions.Types.PropertyInfoSelectorAssertions Should(this FluentAssertions.Types.PropertyInfoSelector propertyInfoSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.PropertyInfoSelectorAssertions _) { } + public static FluentAssertions.Types.TypeSelectorAssertions Should(this FluentAssertions.Types.TypeSelector typeSelector) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Types.TypeSelectorAssertions _) { } + public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } + public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } + public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } + public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } + public static FluentAssertions.Primitives.NullableDateTimeOffsetAssertions Should(this System.DateTimeOffset? actualValue) { } + public static FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions Should(this System.Func action) { } + public static FluentAssertions.Primitives.GuidAssertions Should(this System.Guid actualValue) { } + public static FluentAssertions.Primitives.NullableGuidAssertions Should(this System.Guid? actualValue) { } + public static FluentAssertions.Streams.BufferedStreamAssertions Should(this System.IO.BufferedStream actualValue) { } + public static FluentAssertions.Streams.StreamAssertions Should(this System.IO.Stream actualValue) { } + public static FluentAssertions.Primitives.HttpResponseMessageAssertions Should(this System.Net.Http.HttpResponseMessage actualValue) { } + public static FluentAssertions.Reflection.AssemblyAssertions Should(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.ConstructorInfoAssertions Should(this System.Reflection.ConstructorInfo constructorInfo) { } + public static FluentAssertions.Types.MethodInfoAssertions Should(this System.Reflection.MethodInfo methodInfo) { } + public static FluentAssertions.Types.PropertyInfoAssertions Should(this System.Reflection.PropertyInfo propertyInfo) { } + public static FluentAssertions.Primitives.SimpleTimeSpanAssertions Should(this System.TimeSpan actualValue) { } + public static FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions Should(this System.TimeSpan? actualValue) { } + public static FluentAssertions.Types.TypeAssertions Should(this System.Type subject) { } + public static FluentAssertions.Xml.XAttributeAssertions Should(this System.Xml.Linq.XAttribute actualValue) { } + public static FluentAssertions.Xml.XDocumentAssertions Should(this System.Xml.Linq.XDocument actualValue) { } + public static FluentAssertions.Xml.XElementAssertions Should(this System.Xml.Linq.XElement actualValue) { } + public static FluentAssertions.Primitives.BooleanAssertions Should(this bool actualValue) { } + public static FluentAssertions.Primitives.NullableBooleanAssertions Should(this bool? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this byte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this byte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this decimal actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this decimal? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this double actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this double? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this float actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this float? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this int actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this int? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this long actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this long? actualValue) { } + public static FluentAssertions.Primitives.ObjectAssertions Should(this object actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this sbyte actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this sbyte? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this short actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this short? actualValue) { } + public static FluentAssertions.Primitives.StringAssertions Should(this string actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this uint actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this uint? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ulong actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ulong? actualValue) { } + public static FluentAssertions.Numeric.NumericAssertions Should(this ushort actualValue) { } + public static FluentAssertions.Numeric.NullableNumericAssertions Should(this ushort? actualValue) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.BooleanAssertions _) + where TAssertions : FluentAssertions.Primitives.BooleanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.GuidAssertions _) + where TAssertions : FluentAssertions.Primitives.GuidAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.SimpleTimeSpanAssertions _) + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Specialized.TaskCompletionSourceAssertions _) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Collections.Generic.IEnumerable actualValue) { } + public static FluentAssertions.Specialized.GenericAsyncFunctionAssertions Should(this System.Func> action) { } + public static FluentAssertions.Specialized.FunctionAssertions Should(this System.Func func) { } + public static FluentAssertions.Numeric.ComparableTypeAssertions Should(this System.IComparable comparableValue) { } + public static FluentAssertions.Specialized.TaskCompletionSourceAssertions Should(this System.Threading.Tasks.TaskCompletionSource tcs) { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Numeric.NumericAssertions _) + where TSubject : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.EnumAssertions _) + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.ReferenceTypeAssertions _) + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions { } + public static FluentAssertions.Collections.GenericDictionaryAssertions, TKey, TValue> Should(this System.Collections.Generic.IDictionary actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions>, TKey, TValue> Should(this System.Collections.Generic.IEnumerable> actualValue) { } + public static FluentAssertions.Collections.GenericDictionaryAssertions Should(this TCollection actualValue) + where TCollection : System.Collections.Generic.IEnumerable> { } + } + public static class AssertionOptions + { + public static FluentAssertions.EquivalencyPlan EquivalencyPlan { get; } + public static FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public static void AssertEquivalencyUsing(System.Func defaultsConfigurer) { } + public static FluentAssertions.Equivalency.EquivalencyAssertionOptions CloneDefaults() { } + } + public static class AsyncAssertionsExtensions + { + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + public static System.Threading.Tasks.Task, T>> WithResult(this System.Threading.Tasks.Task, T>> task, T expected, string because = "", params object[] becauseArgs) { } + } + public static class AtLeast + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class AtMost + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class CallerIdentifier + { + public static System.Action Logger { get; set; } + public static string DetermineCallerIdentity() { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class CustomAssertionAttribute : System.Attribute + { + public CustomAssertionAttribute() { } + } + public static class DataRowAssertionExtensions + { + public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) + where TDataRow : System.Data.DataRow { } + } + public static class DataSetAssertionExtensions + { + public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) + where TDataSet : System.Data.DataSet { } + } + public static class DataTableAssertionExtensions + { + public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) + where TDataTable : System.Data.DataTable { } + } + public static class EnumAssertionsExtensions + { + public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) + where TEnum : struct, System.Enum { } + public static FluentAssertions.Primitives.NullableEnumAssertions Should(this TEnum? @enum) + where TEnum : struct, System.Enum { } + } + public class EquivalencyPlan : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public EquivalencyPlan() { } + public void Add() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void AddAfter() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Clear() { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public void Insert() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void InsertBefore() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep, new () { } + public void Remove() + where TStep : FluentAssertions.Equivalency.IEquivalencyStep { } + public void Reset() { } + } + public static class EventRaisingExtensions + { + public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, System.Linq.Expressions.Expression> predicate) { } + public static FluentAssertions.Events.IEventRecording WithArgs(this FluentAssertions.Events.IEventRecording eventRecording, params System.Linq.Expressions.Expression>[] predicates) { } + public static FluentAssertions.Events.IEventRecording WithSender(this FluentAssertions.Events.IEventRecording eventRecording, object expectedSender) { } + } + public static class Exactly + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class ExceptionAssertionsExtensions + { + public static System.Threading.Tasks.Task> Where(this System.Threading.Tasks.Task> task, System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerException(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, System.Type innerException, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static System.Threading.Tasks.Task> WithInnerExceptionExactly(this System.Threading.Tasks.Task> task, string because = "", params object[] becauseArgs) + where TException : System.Exception + where TInnerException : System.Exception { } + public static System.Threading.Tasks.Task> WithMessage(this System.Threading.Tasks.Task> task, string expectedWildcardPattern, string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public static FluentAssertions.Specialized.ExceptionAssertions WithParameterName(this FluentAssertions.Specialized.ExceptionAssertions parent, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + public static System.Threading.Tasks.Task> WithParameterName(this System.Threading.Tasks.Task> task, string paramName, string because = "", params object[] becauseArgs) + where TException : System.ArgumentException { } + } + public static class FluentActions + { + public static System.Func Awaiting(System.Func action) { } + public static System.Func> Awaiting(System.Func> func) { } + public static System.Action Enumerating(System.Func enumerable) { } + public static System.Action Enumerating(System.Func> enumerable) { } + public static System.Action Invoking(System.Action action) { } + public static System.Func Invoking(System.Func func) { } + } + public static class LessThan + { + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class MoreThan + { + public static FluentAssertions.OccurrenceConstraint Once() { } + public static FluentAssertions.OccurrenceConstraint Thrice() { } + public static FluentAssertions.OccurrenceConstraint Times(int expected) { } + public static FluentAssertions.OccurrenceConstraint Twice() { } + } + public static class NumericAssertionsExtensions + { + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal expectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double expectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float expectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte nearbyValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort nearbyValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint nearbyValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> BeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong nearbyValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, decimal? unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, double? unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NullableNumericAssertions parent, float? unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, decimal unexpectedValue, decimal precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, double unexpectedValue, double precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeApproximately(this FluentAssertions.Numeric.NumericAssertions parent, float unexpectedValue, float precision, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, byte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, short distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, int distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, long distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, sbyte distantValue, byte delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ushort distantValue, ushort delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, uint distantValue, uint delta, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeCloseTo(this FluentAssertions.Numeric.NumericAssertions parent, ulong distantValue, ulong delta, string because = "", params object[] becauseArgs) { } + } + public static class ObjectAssertionsExtensions + { + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeBinarySerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeDataContractSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> options, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint BeXmlSerializable(this FluentAssertions.Primitives.ObjectAssertions assertions, string because = "", params object[] becauseArgs) { } + } + public abstract class OccurrenceConstraint + { + protected OccurrenceConstraint(int expectedCount) { } + } + public static class TypeEnumerableExtensions + { + public static System.Collections.Generic.IEnumerable ThatAreClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreInNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatAreNotClasses(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWith(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotDecoratedWithOrInherit(this System.Collections.Generic.IEnumerable types) + where TAttribute : System.Attribute { } + public static System.Collections.Generic.IEnumerable ThatAreNotStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreStatic(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatAreUnderNamespace(this System.Collections.Generic.IEnumerable types, string @namespace) { } + public static System.Collections.Generic.IEnumerable ThatDeriveFrom(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatImplement(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable ThatSatisfy(this System.Collections.Generic.IEnumerable types, System.Func predicate) { } + public static System.Collections.Generic.IEnumerable UnwrapEnumerableTypes(this System.Collections.Generic.IEnumerable types) { } + public static System.Collections.Generic.IEnumerable UnwrapTaskTypes(this System.Collections.Generic.IEnumerable types) { } + } + public static class TypeExtensions + { + public static FluentAssertions.Types.MethodInfoSelector Methods(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.MethodInfoSelector Methods(this System.Type type) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this FluentAssertions.Types.TypeSelector typeSelector) { } + public static FluentAssertions.Types.PropertyInfoSelector Properties(this System.Type type) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Collections.Generic.IEnumerable types) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Reflection.Assembly assembly) { } + public static FluentAssertions.Types.TypeSelector Types(this System.Type type) { } + } + public static class XmlAssertionExtensions + { + public static FluentAssertions.Xml.XmlElementAssertions Should(this System.Xml.XmlElement actualValue) { } + public static FluentAssertions.Xml.XmlNodeAssertions Should(this System.Xml.XmlNode actualValue) { } + } +} +namespace FluentAssertions.Collections +{ + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions, T, FluentAssertions.Collections.GenericCollectionAssertions> + { + public GenericCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public GenericCollectionAssertions(TCollection actualValue) { } + } + public class GenericCollectionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.GenericCollectionAssertions + { + public GenericCollectionAssertions(TCollection actualValue) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint AllBeAssignableTo(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> AllBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllSatisfy(System.Action expected, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionEndsWith(System.Collections.Generic.IEnumerable actual, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertCollectionStartsWith(System.Collections.Generic.IEnumerable actualItems, System.Collections.Generic.ICollection expected, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected void AssertSubjectEquality(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSubsetOf(System.Collections.Generic.IEnumerable expectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint Contain(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainEquivalentOf(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainInOrder(params T[] expected) { } + public FluentAssertions.AndConstraint ContainInOrder(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainItemsAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainSingle(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(params T[] elements) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCount(System.Linq.Expressions.Expression> countPredicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountGreaterThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThan(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveCountLessThanOrEqualTo(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementAt(int index, T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementPreceding(T successor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveElementSucceeding(T predecessor, T expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint IntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Collections.Generic.IEnumerable unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Func comparison, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSubsetOf(System.Collections.Generic.IEnumerable unexpectedSuperset, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotContain(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainInOrder(params T[] unexpected) { } + public FluentAssertions.AndConstraint NotContainInOrder(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainNulls(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where TKey : class { } + public FluentAssertions.AndConstraint NotEqual(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveCount(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameCount(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotIntersectWith(System.Collections.Generic.IEnumerable otherCollection, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyContain(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint OnlyHaveUniqueItems(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Satisfy(params System.Linq.Expressions.Expression>[] predicates) { } + public FluentAssertions.AndConstraint Satisfy(System.Collections.Generic.IEnumerable>> predicates, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint SatisfyRespectively(params System.Action[] elementInspectors) { } + public FluentAssertions.AndConstraint SatisfyRespectively(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(T element, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(System.Collections.Generic.IEnumerable expectation, System.Func equalityComparison, string because = "", params object[] becauseArgs) { } + protected static System.Collections.Generic.IEnumerable RepeatAsManyAs(TExpectation value, System.Collections.Generic.IEnumerable enumerable) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericDictionaryAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + } + public class GenericDictionaryAssertions : FluentAssertions.Collections.GenericCollectionAssertions, TAssertions> + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public GenericDictionaryAssertions(TCollection keyValuePairs) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(params System.Collections.Generic.KeyValuePair[] expected) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.IEnumerable> expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(System.Collections.Generic.KeyValuePair expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Collections.WhoseValueConstraint ContainKey(TKey expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainKeys(params TKey[] expected) { } + public FluentAssertions.AndConstraint ContainKeys(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainValue(TValue expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainValues(params TValue[] expected) { } + public FluentAssertions.AndConstraint ContainValues(System.Collections.Generic.IEnumerable expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(T expected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + public FluentAssertions.AndConstraint NotContain(params System.Collections.Generic.KeyValuePair[] items) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.IEnumerable> items, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(System.Collections.Generic.KeyValuePair item, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(TKey key, TValue value, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKey(TKey unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainKeys(params TKey[] unexpected) { } + public FluentAssertions.AndConstraint NotContainKeys(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValue(TValue unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainValues(params TValue[] unexpected) { } + public FluentAssertions.AndConstraint NotContainValues(System.Collections.Generic.IEnumerable unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEqual(T unexpected, string because = "", params object[] becauseArgs) + where T : System.Collections.Generic.IEnumerable> { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + { + public StringCollectionAssertions(System.Collections.Generic.IEnumerable actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.StringCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public StringCollectionAssertions(TCollection actualValue) { } + } + public class StringCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.StringCollectionAssertions + { + public StringCollectionAssertions(TCollection actualValue) { } + public FluentAssertions.AndConstraint AllBe(string expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint AllBe(string expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(params string[] expectation) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Collections.Generic.IEnumerable expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint ContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Equal(System.Collections.Generic.IEnumerable expected) { } + public FluentAssertions.AndConstraint Equal(params string[] expected) { } + public FluentAssertions.AndConstraint NotContainMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class SubsequentOrderingAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions, T, FluentAssertions.Collections.SubsequentOrderingAssertions> + { + public SubsequentOrderingAssertions(System.Collections.Generic.IEnumerable actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions> + where TCollection : System.Collections.Generic.IEnumerable + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + } + public class SubsequentOrderingGenericCollectionAssertions : FluentAssertions.Collections.GenericCollectionAssertions + where TCollection : System.Collections.Generic.IEnumerable + where TAssertions : FluentAssertions.Collections.SubsequentOrderingGenericCollectionAssertions + { + public SubsequentOrderingGenericCollectionAssertions(TCollection actualValue, System.Linq.IOrderedEnumerable previousOrderedEnumerable) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInAscendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ThenBeInDescendingOrder(System.Linq.Expressions.Expression> propertyExpression, System.Collections.Generic.IComparer comparer, string because = "", params object[] becauseArgs) { } + } + public class WhoseValueConstraint : FluentAssertions.AndConstraint + where TCollection : System.Collections.Generic.IEnumerable> + where TAssertions : FluentAssertions.Collections.GenericDictionaryAssertions + { + public WhoseValueConstraint(TAssertions parentConstraint, TValue value) { } + public TValue WhoseValue { get; } + } +} +namespace FluentAssertions.Common +{ + public enum CSharpAccessModifier + { + Public = 0, + Private = 1, + Protected = 2, + Internal = 3, + ProtectedInternal = 4, + InvalidForCSharp = 5, + PrivateProtected = 6, + } + public class Configuration + { + public Configuration(FluentAssertions.Common.IConfigurationStore store) { } + public string TestFrameworkName { get; set; } + public string ValueFormatterAssembly { get; set; } + public FluentAssertions.Common.ValueFormatterDetectionMode ValueFormatterDetectionMode { get; set; } + public static FluentAssertions.Common.Configuration Current { get; } + } + public static class DateTimeExtensions + { + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime) { } + public static System.DateTimeOffset ToDateTimeOffset(this System.DateTime dateTime, System.TimeSpan offset) { } + } + public interface IClock + { + void Delay(System.TimeSpan timeToDelay); + System.Threading.Tasks.Task DelayAsync(System.TimeSpan delay, System.Threading.CancellationToken cancellationToken); + FluentAssertions.Common.ITimer StartTimer(); + } + public interface IConfigurationStore + { + string GetSetting(string name); + } + public interface IReflector + { + System.Collections.Generic.IEnumerable GetAllTypesFromAppDomain(System.Func predicate); + } + public interface ITimer : System.IDisposable + { + System.TimeSpan Elapsed { get; } + } + public static class Services + { + public static FluentAssertions.Common.Configuration Configuration { get; } + public static FluentAssertions.Common.IConfigurationStore ConfigurationStore { get; set; } + public static FluentAssertions.Common.IReflector Reflector { get; set; } + public static System.Action ThrowException { get; set; } + public static void ResetToDefaults() { } + } + public delegate FluentAssertions.Common.ITimer StartTimer(); + public enum ValueFormatterDetectionMode + { + Disabled = 0, + Specific = 1, + Scan = 2, + } +} +namespace FluentAssertions.Data +{ + public class DataColumnAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public DataColumnAssertions(System.Data.DataColumn dataColumn) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Data.DataColumn expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public class DataRowAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataRow : System.Data.DataRow + { + public DataRowAssertions(TDataRow dataRow) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataRow expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + } + public class DataSetAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataSet : System.Data.DataSet + { + public DataSetAssertions(TDataSet dataSet) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataSet expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataTable> HaveTable(string expectedTableName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTableCount(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveTables(params string[] expectedTableNames) { } + public FluentAssertions.AndConstraint> HaveTables(System.Collections.Generic.IEnumerable expectedTableNames, string because = "", params object[] becauseArgs) { } + } + public class DataTableAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDataTable : System.Data.DataTable + { + public DataTableAssertions(TDataTable dataTable) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> BeEquivalentTo(System.Data.DataTable expectation, System.Func, FluentAssertions.Data.IDataEquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, System.Data.DataColumn> HaveColumn(string expectedColumnName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveColumns(params string[] expectedColumnNames) { } + public FluentAssertions.AndConstraint> HaveColumns(System.Collections.Generic.IEnumerable expectedColumnNames, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> HaveRowCount(int expected, string because = "", params object[] becauseArgs) { } + } + public interface IDataEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + { + FluentAssertions.Data.IDataEquivalencyAssertionOptions AllowingMismatchedTypes(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> predicate); + FluentAssertions.Data.IDataEquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(System.Data.DataColumn column); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumn(string tableName, string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnInAllTables(string columnName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(System.Collections.Generic.IEnumerable columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(params System.Data.DataColumn[] columns); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumns(string tableName, params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(System.Collections.Generic.IEnumerable columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingColumnsInAllTables(params string[] columnNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingOriginalData(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingRelated(System.Linq.Expressions.Expression> expression); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTable(string tableName); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(System.Collections.Generic.IEnumerable tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions ExcludingTables(params string[] tableNames); + FluentAssertions.Data.IDataEquivalencyAssertionOptions IgnoringUnmatchedColumns(); + FluentAssertions.Data.IDataEquivalencyAssertionOptions UsingRowMatchMode(FluentAssertions.Data.RowMatchMode rowMatchMode); + } + public enum RowMatchMode + { + Index = 0, + PrimaryKey = 1, + } +} +namespace FluentAssertions.Equivalency +{ + public class Comparands + { + public Comparands() { } + public Comparands(object subject, object expectation, System.Type compileTimeType) { } + public System.Type CompileTimeType { get; set; } + public object Expectation { get; set; } + public System.Type RuntimeType { get; } + public object Subject { get; set; } + public System.Type GetExpectedType(FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public override string ToString() { } + } + public class ConversionSelector + { + public ConversionSelector() { } + public FluentAssertions.Equivalency.ConversionSelector Clone() { } + public void Exclude(System.Linq.Expressions.Expression> predicate) { } + public void Include(System.Linq.Expressions.Expression> predicate) { } + public void IncludeAll() { } + public bool RequiresConversion(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.INode currentNode) { } + public override string ToString() { } + } + public enum CyclicReferenceHandling + { + Ignore = 0, + ThrowException = 1, + } + public enum EnumEquivalencyHandling + { + ByValue = 0, + ByName = 1, + } + public enum EqualityStrategy + { + Equals = 0, + Members = 1, + ForceEquals = 2, + ForceMembers = 3, + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + public EquivalencyAssertionOptions() { } + } + public class EquivalencyAssertionOptions : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions> + { + public EquivalencyAssertionOptions() { } + public EquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions> AsCollection() { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Excluding(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions Including(System.Linq.Expressions.Expression> expression) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberPath, string subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMemberPath, System.Linq.Expressions.Expression> subjectMemberPath) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(System.Linq.Expressions.Expression> expectationMember, System.Linq.Expressions.Expression> subjectMember) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithMapping(string expectationMemberName, string subjectMemberName) { } + public FluentAssertions.Equivalency.EquivalencyAssertionOptions WithStrictOrderingFor(System.Linq.Expressions.Expression> expression) { } + } + public enum EquivalencyResult + { + ContinueWithNext = 0, + AssertionCompleted = 1, + } + public abstract class EquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + protected EquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + protected abstract FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public class EquivalencyValidationContext : FluentAssertions.Equivalency.IEquivalencyValidationContext + { + public EquivalencyValidationContext(FluentAssertions.Equivalency.INode root, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.INode CurrentNode { get; } + public FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + public FluentAssertions.Execution.Reason Reason { get; set; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; set; } + public FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember) { } + public FluentAssertions.Equivalency.IEquivalencyValidationContext Clone() { } + public bool IsCyclicReference(object expectation) { } + public override string ToString() { } + } + public class EquivalencyValidator : FluentAssertions.Equivalency.IEquivalencyValidator + { + public EquivalencyValidator() { } + public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { } + public void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { } + } + public class Field : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Field(System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public Field(System.Type reflectedType, System.Reflection.FieldInfo fieldInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; set; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public delegate string GetSubjectId(); + public interface IAssertionContext + { + string Because { get; set; } + object[] BecauseArgs { get; set; } + TSubject Expectation { get; } + FluentAssertions.Equivalency.INode SelectedNode { get; } + TSubject Subject { get; } + } + public interface IEquivalencyAssertionOptions + { + bool AllowInfiniteRecursion { get; } + bool CompareRecordsByValue { get; } + FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } + FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + bool IsRecursive { get; } + System.Collections.Generic.IEnumerable MatchingRules { get; } + FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + System.Collections.Generic.IEnumerable SelectionRules { get; } + FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + bool UseRuntimeTyping { get; } + System.Collections.Generic.IEnumerable UserEquivalencySteps { get; } + FluentAssertions.Equivalency.EqualityStrategy GetEqualityStrategy(System.Type type); + } + public interface IEquivalencyStep + { + FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator); + } + public interface IEquivalencyValidationContext + { + FluentAssertions.Equivalency.INode CurrentNode { get; } + FluentAssertions.Equivalency.IEquivalencyAssertionOptions Options { get; } + FluentAssertions.Execution.Reason Reason { get; } + FluentAssertions.Equivalency.Tracing.Tracer Tracer { get; } + FluentAssertions.Equivalency.IEquivalencyValidationContext AsCollectionItem(string index); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsDictionaryItem(TKey key); + FluentAssertions.Equivalency.IEquivalencyValidationContext AsNestedMember(FluentAssertions.Equivalency.IMember expectationMember); + FluentAssertions.Equivalency.IEquivalencyValidationContext Clone(); + bool IsCyclicReference(object expectation); + } + public interface IEquivalencyValidator + { + void RecursivelyAssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context); + } + public interface IMember : FluentAssertions.Equivalency.INode + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + System.Type ReflectedType { get; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + object GetValue(object obj); + } + public interface IMemberInfo + { + System.Type DeclaringType { get; } + FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + string Name { get; } + string Path { get; set; } + FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + System.Type Type { get; } + } + public interface IMemberMatchingRule + { + FluentAssertions.Equivalency.IMember Match(FluentAssertions.Equivalency.IMember expectedMember, object subject, FluentAssertions.Equivalency.INode parent, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options); + } + public interface IMemberSelectionRule + { + bool IncludesMembers { get; } + System.Collections.Generic.IEnumerable SelectMembers(FluentAssertions.Equivalency.INode currentNode, System.Collections.Generic.IEnumerable selectedMembers, FluentAssertions.Equivalency.MemberSelectionContext context); + } + public interface INode + { + int Depth { get; } + string Description { get; } + FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; } + bool IsRoot { get; } + string Name { get; set; } + string Path { get; } + string PathAndName { get; } + bool RootIsCollection { get; } + System.Type Type { get; } + } + public interface IObjectInfo + { + System.Type CompileTimeType { get; } + string Path { get; set; } + System.Type RuntimeType { get; } + System.Type Type { get; } + } + public interface IOrderingRule + { + FluentAssertions.Equivalency.OrderStrictness Evaluate(FluentAssertions.Equivalency.IObjectInfo objectInfo); + } + public static class MemberFactory + { + public static FluentAssertions.Equivalency.IMember Create(System.Reflection.MemberInfo memberInfo, FluentAssertions.Equivalency.INode parent) { } + } + public class MemberSelectionContext + { + public MemberSelectionContext(System.Type compileTimeType, System.Type runtimeType, FluentAssertions.Equivalency.IEquivalencyAssertionOptions options) { } + public FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } + public FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } + public System.Type Type { get; } + } + [System.Flags] + public enum MemberVisibility + { + None = 0, + Internal = 1, + Public = 2, + } + public class Node : FluentAssertions.Equivalency.INode + { + public Node() { } + public int Depth { get; } + public virtual string Description { get; } + public FluentAssertions.Equivalency.GetSubjectId GetSubjectId { get; set; } + public bool IsRoot { get; } + public string Name { get; set; } + public string Path { get; set; } + public string PathAndName { get; } + public bool RootIsCollection { get; set; } + public System.Type Type { get; set; } + public override bool Equals(object obj) { } + public override int GetHashCode() { } + public override string ToString() { } + public static FluentAssertions.Equivalency.INode From(FluentAssertions.Equivalency.GetSubjectId getSubjectId) { } + public static FluentAssertions.Equivalency.INode FromCollectionItem(string index, FluentAssertions.Equivalency.INode parent) { } + public static FluentAssertions.Equivalency.INode FromDictionaryItem(object key, FluentAssertions.Equivalency.INode parent) { } + } + public enum OrderStrictness + { + Strict = 0, + NotStrict = 1, + Irrelevant = 2, + } + public class OrderingRuleCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public OrderingRuleCollection() { } + public OrderingRuleCollection(System.Collections.Generic.IEnumerable orderingRules) { } + public void Add(FluentAssertions.Equivalency.IOrderingRule rule) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public bool IsOrderingStrictFor(FluentAssertions.Equivalency.IObjectInfo objectInfo) { } + } + public class Property : FluentAssertions.Equivalency.Node, FluentAssertions.Equivalency.IMember, FluentAssertions.Equivalency.INode + { + public Property(System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public Property(System.Type reflectedType, System.Reflection.PropertyInfo propertyInfo, FluentAssertions.Equivalency.INode parent) { } + public System.Type DeclaringType { get; } + public override string Description { get; } + public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public System.Type ReflectedType { get; } + public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } + public object GetValue(object obj) { } + } + public abstract class SelfReferenceEquivalencyAssertionOptions : FluentAssertions.Equivalency.IEquivalencyAssertionOptions + where TSelf : FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions + { + protected SelfReferenceEquivalencyAssertionOptions(FluentAssertions.Equivalency.IEquivalencyAssertionOptions defaults) { } + public bool CompareRecordsByValue { get; } + public FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } + [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)] + protected FluentAssertions.Equivalency.OrderingRuleCollection OrderingRules { get; } + public FluentAssertions.Equivalency.Tracing.ITraceWriter TraceWriter { get; } + protected TSelf AddMatchingRule(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + protected TSelf AddSelectionRule(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf AllowingInfiniteRecursion() { } + public TSelf ComparingByMembers(System.Type type) { } + public TSelf ComparingByMembers() { } + public TSelf ComparingByValue(System.Type type) { } + public TSelf ComparingByValue() { } + public TSelf ComparingEnumsByName() { } + public TSelf ComparingEnumsByValue() { } + public TSelf ComparingRecordsByMembers() { } + public TSelf ComparingRecordsByValue() { } + public TSelf Excluding(System.Linq.Expressions.Expression> predicate) { } + public TSelf ExcludingFields() { } + public TSelf ExcludingMissingMembers() { } + public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingProperties() { } + public TSelf IgnoringCyclicReferences() { } + public TSelf Including(System.Linq.Expressions.Expression> predicate) { } + public TSelf IncludingAllDeclaredProperties() { } + public TSelf IncludingAllRuntimeProperties() { } + public TSelf IncludingFields() { } + public TSelf IncludingInternalFields() { } + public TSelf IncludingInternalProperties() { } + public TSelf IncludingNestedObjects() { } + public TSelf IncludingProperties() { } + public TSelf RespectingDeclaredTypes() { } + public TSelf RespectingRuntimeTypes() { } + public TSelf ThrowingOnMissingMembers() { } + public override string ToString() { } + public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberMatchingRule matchingRule) { } + public TSelf Using(FluentAssertions.Equivalency.IMemberSelectionRule selectionRule) { } + public TSelf Using(FluentAssertions.Equivalency.IOrderingRule orderingRule) { } + public FluentAssertions.Equivalency.SelfReferenceEquivalencyAssertionOptions.Restriction Using(System.Action> action) { } + public TSelf Using(System.Collections.Generic.IEqualityComparer comparer) { } + public TSelf Using() + where TEqualityComparer : System.Collections.Generic.IEqualityComparer, new () { } + public TSelf WithAutoConversion() { } + public TSelf WithAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithStrictOrdering() { } + public TSelf WithStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public TSelf WithTracing(FluentAssertions.Equivalency.Tracing.ITraceWriter writer = null) { } + public TSelf WithoutAutoConversionFor(System.Linq.Expressions.Expression> predicate) { } + public void WithoutMatchingRules() { } + public void WithoutSelectionRules() { } + public TSelf WithoutStrictOrdering() { } + public TSelf WithoutStrictOrderingFor(System.Linq.Expressions.Expression> predicate) { } + public class Restriction + { + public Restriction(TSelf options, System.Action> action) { } + public TSelf When(System.Linq.Expressions.Expression> predicate) { } + public TSelf WhenTypeIs() + where TMemberType : TMember { } + } + } + public static class SubjectInfoExtensions + { + public static bool WhichGetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichGetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterDoesNotHave(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + public static bool WhichSetterHas(this FluentAssertions.Equivalency.IMemberInfo memberInfo, FluentAssertions.Common.CSharpAccessModifier accessModifier) { } + } +} +namespace FluentAssertions.Equivalency.Steps +{ + public class AssertionRuleEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AssertionRuleEquivalencyStep(System.Linq.Expressions.Expression> predicate, System.Action> assertion) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class AutoConversionStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public AutoConversionStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class ConstraintCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ConstraintEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public ConstraintEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataColumnEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataColumnEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRelationEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRelationEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowCollectionEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowCollectionEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataRowEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataRowEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataSetEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataSetEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DataTableEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DataTableEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class DictionaryEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public DictionaryEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumEqualityStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumEqualityStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class EqualityComparerEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public EqualityComparerEquivalencyStep(System.Collections.Generic.IEqualityComparer comparer) { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + public override string ToString() { } + } + public class GenericDictionaryEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericDictionaryEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class GenericEnumerableEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public GenericEnumerableEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ReferenceEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ReferenceEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class RunAllUserStepsEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public RunAllUserStepsEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class SimpleEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public SimpleEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StringEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StringEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class StructuralEqualityEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public StructuralEqualityEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class ValueTypeEquivalencyStep : FluentAssertions.Equivalency.IEquivalencyStep + { + public ValueTypeEquivalencyStep() { } + public FluentAssertions.Equivalency.EquivalencyResult Handle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XAttributeEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XAttributeEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XDocumentEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XDocumentEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } + public class XElementEquivalencyStep : FluentAssertions.Equivalency.EquivalencyStep + { + public XElementEquivalencyStep() { } + protected override FluentAssertions.Equivalency.EquivalencyResult OnHandle(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context, FluentAssertions.Equivalency.IEquivalencyValidator nestedValidator) { } + } +} +namespace FluentAssertions.Equivalency.Tracing +{ + public delegate string GetTraceMessage(FluentAssertions.Equivalency.INode node); + public interface ITraceWriter + { + System.IDisposable AddBlock(string trace); + void AddSingle(string trace); + string ToString(); + } + public class StringBuilderTraceWriter : FluentAssertions.Equivalency.Tracing.ITraceWriter + { + public StringBuilderTraceWriter() { } + public System.IDisposable AddBlock(string trace) { } + public void AddSingle(string trace) { } + public override string ToString() { } + } + public class Tracer + { + public override string ToString() { } + public System.IDisposable WriteBlock(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + public void WriteLine(FluentAssertions.Equivalency.Tracing.GetTraceMessage getTraceMessage) { } + } +} +namespace FluentAssertions.Events +{ + public class EventAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions> + { + protected EventAssertions(FluentAssertions.Events.IMonitor monitor) { } + protected override string Identifier { get; } + public void NotRaise(string eventName, string because = "", params object[] becauseArgs) { } + public void NotRaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Events.IEventRecording Raise(string eventName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Events.IEventRecording RaisePropertyChangeFor(System.Linq.Expressions.Expression> propertyExpression, string because = "", params object[] becauseArgs) { } + } + public class EventMetadata + { + public EventMetadata(string eventName, System.Type handlerType) { } + public string EventName { get; } + public System.Type HandlerType { get; } + } + public interface IEventRecording : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + System.Type EventHandlerType { get; } + string EventName { get; } + object EventObject { get; } + } + public interface IMonitor : System.IDisposable + { + FluentAssertions.Events.EventMetadata[] MonitoredEvents { get; } + FluentAssertions.Events.OccurredEvent[] OccurredEvents { get; } + T Subject { get; } + void Clear(); + FluentAssertions.Events.IEventRecording GetRecordingFor(string eventName); + FluentAssertions.Events.EventAssertions Should(); + } + public class OccurredEvent + { + public OccurredEvent() { } + public string EventName { get; set; } + public object[] Parameters { get; set; } + public int Sequence { get; set; } + public System.DateTime TimestampUtc { get; set; } + } +} +namespace FluentAssertions.Execution +{ + [System.Serializable] + public class AssertionFailedException : System.Exception + { + public AssertionFailedException(string message) { } + protected AssertionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } + public sealed class AssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public AssertionScope() { } + public AssertionScope(FluentAssertions.Execution.IAssertionStrategy assertionStrategy) { } + public AssertionScope(System.Lazy context) { } + public AssertionScope(string context) { } + public string CallerIdentity { get; } + public System.Lazy Context { get; set; } + public FluentAssertions.Formatting.FormattingOptions FormattingOptions { get; } + public FluentAssertions.Execution.AssertionScope UsingLineBreaks { get; } + public static FluentAssertions.Execution.AssertionScope Current { get; } + public void AddNonReportable(string key, object value) { } + public void AddPreFormattedFailure(string formattedFailureMessage) { } + public void AddReportable(string key, System.Func valueFunc) { } + public void AddReportable(string key, string value) { } + public void AppendTracing(string tracingBlock) { } + public void AssumeSingleCaller() { } + public FluentAssertions.Execution.AssertionScope BecauseOf(FluentAssertions.Execution.Reason reason) { } + public FluentAssertions.Execution.AssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.AssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.AssertionScope ForConstraint(FluentAssertions.OccurrenceConstraint constraint, int actualOccurrences) { } + public T Get(string key) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public bool HasFailures() { } + public FluentAssertions.Execution.AssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.AssertionScope WithExpectation(string message, params object[] args) { } + } + public class Continuation + { + public FluentAssertions.Execution.IAssertionScope Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.Continuation continuation) { } + } + public class ContinuationOfGiven + { + public FluentAssertions.Execution.GivenSelector Then { get; } + public static bool op_Implicit(FluentAssertions.Execution.ContinuationOfGiven continuationOfGiven) { } + } + public sealed class ContinuedAssertionScope : FluentAssertions.Execution.IAssertionScope, System.IDisposable + { + public FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + public FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs) { } + public FluentAssertions.Execution.Continuation ClearExpectation() { } + public string[] Discard() { } + public void Dispose() { } + public FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc) { } + public FluentAssertions.Execution.Continuation FailWith(string message) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders) { } + public FluentAssertions.Execution.Continuation FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.IAssertionScope ForCondition(bool condition) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + public FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier) { } + public FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args) { } + } + public static class Execute + { + public static FluentAssertions.Execution.AssertionScope Assertion { get; } + } + public class FailReason + { + public FailReason(string message, params object[] args) { } + public object[] Args { get; } + public string Message { get; } + } + public class GivenSelector + { + public FluentAssertions.Execution.ContinuationOfGiven ClearExpectation() { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params System.Func[] args) { } + public FluentAssertions.Execution.ContinuationOfGiven FailWith(string message, params object[] args) { } + public FluentAssertions.Execution.GivenSelector ForCondition(System.Func predicate) { } + public FluentAssertions.Execution.GivenSelector Given(System.Func selector) { } + } + public interface IAssertionScope : System.IDisposable + { + FluentAssertions.Execution.IAssertionScope UsingLineBreaks { get; } + FluentAssertions.Execution.IAssertionScope BecauseOf(string because, params object[] becauseArgs); + FluentAssertions.Execution.Continuation ClearExpectation(); + string[] Discard(); + FluentAssertions.Execution.Continuation FailWith(System.Func failReasonFunc); + FluentAssertions.Execution.Continuation FailWith(string message); + FluentAssertions.Execution.Continuation FailWith(string message, params System.Func[] argProviders); + FluentAssertions.Execution.Continuation FailWith(string message, params object[] args); + FluentAssertions.Execution.IAssertionScope ForCondition(bool condition); + FluentAssertions.Execution.GivenSelector Given(System.Func selector); + FluentAssertions.Execution.IAssertionScope WithDefaultIdentifier(string identifier); + FluentAssertions.Execution.IAssertionScope WithExpectation(string message, params object[] args); + } + public interface IAssertionStrategy + { + System.Collections.Generic.IEnumerable FailureMessages { get; } + System.Collections.Generic.IEnumerable DiscardFailures(); + void HandleFailure(string message); + void ThrowIfAny(System.Collections.Generic.IDictionary context); + } + public interface ICloneable2 + { + object Clone(); + } + public class Reason + { + public Reason(string formattedMessage, object[] arguments) { } + public object[] Arguments { get; set; } + public string FormattedMessage { get; set; } + } +} +namespace FluentAssertions.Extensions +{ + public static class FluentDateTimeExtensions + { + public static System.DateTime AddMicroseconds(this System.DateTime self, long microseconds) { } + public static System.DateTimeOffset AddMicroseconds(this System.DateTimeOffset self, long microseconds) { } + public static System.DateTime AddNanoseconds(this System.DateTime self, long nanoseconds) { } + public static System.DateTimeOffset AddNanoseconds(this System.DateTimeOffset self, long nanoseconds) { } + public static System.DateTime After(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime April(this int day, int year) { } + public static System.DateTime AsLocal(this System.DateTime dateTime) { } + public static System.DateTime AsUtc(this System.DateTime dateTime) { } + public static System.DateTime At(this System.DateTime date, System.TimeSpan time) { } + public static System.DateTime At(this System.DateTime date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTimeOffset At(this System.DateTimeOffset date, int hours, int minutes, int seconds = 0, int milliseconds = 0, int microseconds = 0, int nanoseconds = 0) { } + public static System.DateTime August(this int day, int year) { } + public static System.DateTime Before(this System.TimeSpan timeDifference, System.DateTime sourceDateTime) { } + public static System.DateTime December(this int day, int year) { } + public static System.DateTime February(this int day, int year) { } + public static System.DateTime January(this int day, int year) { } + public static System.DateTime July(this int day, int year) { } + public static System.DateTime June(this int day, int year) { } + public static System.DateTime March(this int day, int year) { } + public static System.DateTime May(this int day, int year) { } + public static int Microsecond(this System.DateTime self) { } + public static int Microsecond(this System.DateTimeOffset self) { } + public static int Nanosecond(this System.DateTime self) { } + public static int Nanosecond(this System.DateTimeOffset self) { } + public static System.DateTime November(this int day, int year) { } + public static System.DateTime October(this int day, int year) { } + public static System.DateTime September(this int day, int year) { } + public static System.DateTimeOffset WithOffset(this System.DateTime self, System.TimeSpan offset) { } + } + public static class FluentTimeSpanExtensions + { + public const long TicksPerMicrosecond = 10; + public const double TicksPerNanosecond = 0.01D; + public static System.TimeSpan And(this System.TimeSpan sourceTime, System.TimeSpan offset) { } + public static System.TimeSpan Days(this double days) { } + public static System.TimeSpan Days(this int days) { } + public static System.TimeSpan Days(this int days, System.TimeSpan offset) { } + public static System.TimeSpan Hours(this double hours) { } + public static System.TimeSpan Hours(this int hours) { } + public static System.TimeSpan Hours(this int hours, System.TimeSpan offset) { } + public static int Microseconds(this System.TimeSpan self) { } + public static System.TimeSpan Microseconds(this int microseconds) { } + public static System.TimeSpan Microseconds(this long microseconds) { } + public static System.TimeSpan Milliseconds(this double milliseconds) { } + public static System.TimeSpan Milliseconds(this int milliseconds) { } + public static System.TimeSpan Minutes(this double minutes) { } + public static System.TimeSpan Minutes(this int minutes) { } + public static System.TimeSpan Minutes(this int minutes, System.TimeSpan offset) { } + public static int Nanoseconds(this System.TimeSpan self) { } + public static System.TimeSpan Nanoseconds(this int nanoseconds) { } + public static System.TimeSpan Nanoseconds(this long nanoseconds) { } + public static System.TimeSpan Seconds(this double seconds) { } + public static System.TimeSpan Seconds(this int seconds) { } + public static System.TimeSpan Seconds(this int seconds, System.TimeSpan offset) { } + public static System.TimeSpan Ticks(this int ticks) { } + public static System.TimeSpan Ticks(this long ticks) { } + public static double TotalMicroseconds(this System.TimeSpan self) { } + public static double TotalNanoseconds(this System.TimeSpan self) { } + } +} +namespace FluentAssertions.Formatting +{ + public class AggregateExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AggregateExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class AttributeBasedFormatter : FluentAssertions.Formatting.IValueFormatter + { + public AttributeBasedFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DateTimeOffsetValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DateTimeOffsetValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DecimalValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DecimalValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DefaultValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DefaultValueFormatter() { } + protected virtual int SpacesPerIndentionLevel { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + protected virtual System.Reflection.MemberInfo[] GetMembers(System.Type type) { } + protected virtual string TypeDisplayName(System.Type type) { } + } + public class DictionaryValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DictionaryValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class DoubleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public DoubleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumValueFormatter() { } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class EnumerableValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public EnumerableValueFormatter() { } + protected virtual int MaxItems { get; } + public virtual bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExceptionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExceptionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class ExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public ExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public delegate void FormatChild(string childPath, object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph); + public class FormattedObjectGraph + { + public FormattedObjectGraph(int maxLines) { } + public int LineCount { get; } + public static int SpacesPerIndentation { get; } + public void AddFragment(string fragment) { } + public void AddFragmentOnNewLine(string fragment) { } + public void AddLine(string line) { } + public override string ToString() { } + public System.IDisposable WithIndentation() { } + } + public static class Formatter + { + public static System.Collections.Generic.IEnumerable Formatters { get; } + public static void AddFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static void RemoveFormatter(FluentAssertions.Formatting.IValueFormatter formatter) { } + public static string ToString(object value, FluentAssertions.Formatting.FormattingOptions options = null) { } + } + public class FormattingContext + { + public FormattingContext() { } + public bool UseLineBreaks { get; set; } + } + public class FormattingOptions + { + public FormattingOptions() { } + public int MaxDepth { get; set; } + public int MaxLines { get; set; } + public bool UseLineBreaks { get; set; } + } + public class GuidValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public GuidValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public interface IValueFormatter + { + bool CanHandle(object value); + void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild); + } + public class Int16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class Int64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public Int64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class MaxLinesExceededException : System.Exception + { + public MaxLinesExceededException() { } + public MaxLinesExceededException(string message) { } + public MaxLinesExceededException(string message, System.Exception innerException) { } + } + public class MultidimensionalArrayFormatter : FluentAssertions.Formatting.IValueFormatter + { + public MultidimensionalArrayFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class NullValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public NullValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PredicateLambdaExpressionValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PredicateLambdaExpressionValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class PropertyInfoFormatter : FluentAssertions.Formatting.IValueFormatter + { + public PropertyInfoFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SByteValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SByteValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class SingleValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public SingleValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class StringValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public StringValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TaskFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TaskFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class TimeSpanValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public TimeSpanValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt16ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt16ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt32ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt32ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class UInt64ValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public UInt64ValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)] + public class ValueFormatterAttribute : System.Attribute + { + public ValueFormatterAttribute() { } + } + public class XAttributeValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XAttributeValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XDocumentValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XDocumentValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XElementValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XElementValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } + public class XmlReaderValueFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlReaderValueFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} +namespace FluentAssertions.Numeric +{ + public class ComparableTypeAssertions : FluentAssertions.Numeric.ComparableTypeAssertions> + { + public ComparableTypeAssertions(System.IComparable value) { } + } + public class ComparableTypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, TAssertions> + where TAssertions : FluentAssertions.Numeric.ComparableTypeAssertions + { + public ComparableTypeAssertions(System.IComparable value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeRankedEquallyTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeRankedEquallyTo(T unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NullableNumericAssertions> + where T : struct, System.IComparable + { + public NullableNumericAssertions(T? value) { } + } + public class NullableNumericAssertions : FluentAssertions.Numeric.NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NullableNumericAssertions + { + public NullableNumericAssertions(T? value) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NumericAssertions : FluentAssertions.Numeric.NumericAssertions> + where T : struct, System.IComparable + { + public NumericAssertions(T value) { } + } + public class NumericAssertions + where T : struct, System.IComparable + where TAssertions : FluentAssertions.Numeric.NumericAssertions + { + public NumericAssertions(T value) { } + public T? Subject { get; } + public FluentAssertions.AndConstraint Be(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(T? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(T expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params T[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(T? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeInRange(T minimumValue, T maximumValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Primitives +{ + public class BooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + } + public class BooleanAssertions + where TAssertions : FluentAssertions.Primitives.BooleanAssertions + { + public BooleanAssertions(bool? value) { } + public bool? Subject { get; } + public FluentAssertions.AndConstraint Be(bool expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeTrue(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(bool unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + } + public class DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + public DateTimeAssertions(System.DateTime? value) { } + public System.DateTime? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTime? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTime nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeIn(System.DateTimeKind expectedKind, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTime[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTime expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTime? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTime distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTime unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + } + public class DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + public DateTimeOffsetAssertions(System.DateTimeOffset? value) { } + public System.DateTimeOffset? Subject { get; } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeAtLeast(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.DateTimeOffset nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeExactly(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeExactly(System.DateTimeOffset? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeLessThan(System.TimeSpan timeSpan) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeMoreThan(System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint BeOnOrAfter(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOnOrBefore(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params System.DateTimeOffset[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(params System.Nullable[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameDateAs(System.DateTimeOffset expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Primitives.DateTimeOffsetRangeAssertions BeWithin(System.TimeSpan timeSpan) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveDay(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveHour(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMinute(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveMonth(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveOffset(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSecond(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveYear(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.DateTimeOffset distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeExactly(System.DateTimeOffset? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrAfter(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOnOrBefore(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameDateAs(System.DateTimeOffset unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveDay(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveHour(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMinute(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMonth(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveOffset(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSecond(int unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveYear(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class DateTimeOffsetRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + { + protected DateTimeOffsetRangeAssertions(TAssertions parentAssertions, System.DateTimeOffset? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTimeOffset target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class DateTimeRangeAssertions + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions + { + protected DateTimeRangeAssertions(TAssertions parentAssertions, System.DateTime? subject, FluentAssertions.Primitives.TimeSpanCondition condition, System.TimeSpan timeSpan) { } + public FluentAssertions.AndConstraint After(System.DateTime target, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Before(System.DateTime target, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class EnumAssertions : FluentAssertions.Primitives.EnumAssertions> + where TEnum : struct, System.Enum + { + public EnumAssertions(TEnum subject) { } + } + public class EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.EnumAssertions + { + public EnumAssertions(TEnum subject) { } + public TEnum? Subject { get; } + public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint HaveFlag(TEnum expectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveSameNameAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveSameValueAs(T expected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint HaveValue(decimal expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveSameValueAs(T unexpected, string because = "", params object[] becauseArgs) + where T : struct, System.Enum { } + public FluentAssertions.AndConstraint NotHaveValue(decimal unexpected, string because = "", params object[] becauseArgs) { } + } + public class GuidAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + } + public class GuidAssertions + where TAssertions : FluentAssertions.Primitives.GuidAssertions + { + public GuidAssertions(System.Guid? value) { } + public System.Guid? Subject { get; } + public FluentAssertions.AndConstraint Be(System.Guid expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.Guid unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + public HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + } + public class HttpResponseMessageAssertions : FluentAssertions.Primitives.ObjectAssertions + where TAssertions : FluentAssertions.Primitives.HttpResponseMessageAssertions + { + protected HttpResponseMessageAssertions(System.Net.Http.HttpResponseMessage value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeRedirection(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSuccessful(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveClientError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveServerError(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveStatusCode(System.Net.HttpStatusCode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveStatusCode(System.Net.HttpStatusCode unexpected, string because = "", params object[] becauseArgs) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + } + public class NullableBooleanAssertions : FluentAssertions.Primitives.BooleanAssertions + where TAssertions : FluentAssertions.Primitives.NullableBooleanAssertions + { + public NullableBooleanAssertions(bool? value) { } + public FluentAssertions.AndConstraint Be(bool? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(bool? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeFalse(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeTrue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + } + public class NullableDateTimeAssertions : FluentAssertions.Primitives.DateTimeAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeAssertions + { + public NullableDateTimeAssertions(System.DateTime? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + } + public class NullableDateTimeOffsetAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions + where TAssertions : FluentAssertions.Primitives.NullableDateTimeOffsetAssertions + { + public NullableDateTimeOffsetAssertions(System.DateTimeOffset? expected) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.NullableEnumAssertions> + where TEnum : struct, System.Enum + { + public NullableEnumAssertions(TEnum? subject) { } + } + public class NullableEnumAssertions : FluentAssertions.Primitives.EnumAssertions + where TEnum : struct, System.Enum + where TAssertions : FluentAssertions.Primitives.NullableEnumAssertions + { + public NullableEnumAssertions(TEnum? subject) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + } + public class NullableGuidAssertions : FluentAssertions.Primitives.GuidAssertions + where TAssertions : FluentAssertions.Primitives.NullableGuidAssertions + { + public NullableGuidAssertions(System.Guid? value) { } + public FluentAssertions.AndConstraint Be(System.Guid? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class NullableSimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions + { + public NullableSimpleTimeSpanAssertions(System.TimeSpan? value) { } + public FluentAssertions.AndConstraint Be(System.TimeSpan? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveValue(string because = "", params object[] becauseArgs) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(object value) { } + } + public class ObjectAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ObjectAssertions + { + public ObjectAssertions(TSubject value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(TSubject expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(TExpectation expectation, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(TSubject unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(TExpectation unexpected, System.Func, FluentAssertions.Equivalency.EquivalencyAssertionOptions> config, string because = "", params object[] becauseArgs) { } + } + public abstract class ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + protected ReferenceTypeAssertions(TSubject subject) { } + protected abstract string Identifier { get; } + public TSubject Subject { get; } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOfType(System.Type expectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSameAs(TSubject expected, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) + where T : TSubject { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNull(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(System.Type unexpectedType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeOfType(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs) { } + } + public class SimpleTimeSpanAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + } + public class SimpleTimeSpanAssertions + where TAssertions : FluentAssertions.Primitives.SimpleTimeSpanAssertions + { + public SimpleTimeSpanAssertions(System.TimeSpan? value) { } + public System.TimeSpan? Subject { get; } + public FluentAssertions.AndConstraint Be(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan nearbyTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNegative(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BePositive(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(System.TimeSpan unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeCloseTo(System.TimeSpan distantTime, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + } + public class StringAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + } + public class StringAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TAssertions : FluentAssertions.Primitives.StringAssertions + { + public StringAssertions(string value) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeOneOf(params string[] validValues) { } + public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Contain(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAll(params string[] values) { } + public FluentAssertions.AndConstraint ContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainAny(params string[] values) { } + public FluentAssertions.AndConstraint ContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint ContainEquivalentOf(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint EndWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Match(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(string regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint MatchRegex(System.Text.RegularExpressions.Regex regularExpression, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeLowerCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrEmpty(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeNullOrWhiteSpace(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUpperCased(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContain(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAll(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAll(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainAny(params string[] values) { } + public FluentAssertions.AndConstraint NotContainAny(System.Collections.Generic.IEnumerable values, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotContainEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotEndWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatch(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchEquivalentOf(string wildcardPattern, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(string regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotMatchRegex(System.Text.RegularExpressions.Regex regularExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWith(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotStartWithEquivalentOf(string unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWith(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint StartWithEquivalentOf(string expected, string because = "", params object[] becauseArgs) { } + } + public enum TimeSpanCondition + { + MoreThan = 0, + AtLeast = 1, + Exactly = 2, + Within = 3, + LessThan = 4, + } +} +namespace FluentAssertions.Reflection +{ + public class AssemblyAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public AssemblyAssertions(System.Reflection.Assembly assembly) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint DefineType(string @namespace, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Reference(System.Reflection.Assembly assembly, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Specialized +{ + public class ActionAssertions : FluentAssertions.Specialized.DelegateAssertions + { + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public ActionAssertions(System.Action subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + } + public class AsyncFunctionAssertions : FluentAssertions.Specialized.DelegateAssertionsBase, TAssertions> + where TTask : System.Threading.Tasks.Task + where TAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public AsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + public System.Threading.Tasks.Task> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task> NotThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public System.Threading.Tasks.Task> ThrowExactlyAsync(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertionsBase : FluentAssertions.Primitives.ReferenceTypeAssertions> + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + { + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) { } + protected FluentAssertions.AndConstraint NotThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + protected FluentAssertions.Specialized.ExceptionAssertions ThrowInternal(System.Exception exception, string because, object[] becauseArgs) + where TException : System.Exception { } + } + public abstract class DelegateAssertions : FluentAssertions.Specialized.DelegateAssertionsBase + where TDelegate : System.Delegate + where TAssertions : FluentAssertions.Specialized.DelegateAssertions + { + protected DelegateAssertions(TDelegate @delegate, FluentAssertions.Specialized.IExtractExceptions extractor) { } + protected abstract void InvokeSubject(); + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotThrow(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.AndConstraint NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions Throw(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions ThrowExactly(string because = "", params object[] becauseArgs) + where TException : System.Exception { } + } + public class ExceptionAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions, FluentAssertions.Specialized.ExceptionAssertions> + where TException : System.Exception + { + public ExceptionAssertions(System.Collections.Generic.IEnumerable exceptions) { } + public TException And { get; } + protected override string Identifier { get; } + public TException Which { get; } + public FluentAssertions.Specialized.ExceptionAssertions Where(System.Linq.Expressions.Expression> exceptionExpression, string because = "", params object[] becauseArgs) { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerException(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerException(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(System.Type innerException, string because = null, params object[] becauseArgs) { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithInnerExceptionExactly(string because = null, params object[] becauseArgs) + where TInnerException : System.Exception { } + public virtual FluentAssertions.Specialized.ExceptionAssertions WithMessage(string expectedWildcardPattern, string because = "", params object[] becauseArgs) { } + } + public class ExecutionTime + { + public ExecutionTime(System.Action action, FluentAssertions.Common.StartTimer createTimer) { } + public ExecutionTime(System.Func action, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Action action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + protected ExecutionTime(System.Func action, string actionDescription, FluentAssertions.Common.StartTimer createTimer) { } + } + public class ExecutionTimeAssertions + { + public ExecutionTimeAssertions(FluentAssertions.Specialized.ExecutionTime executionTime) { } + public FluentAssertions.AndConstraint BeCloseTo(System.TimeSpan expectedDuration, System.TimeSpan precision, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThan(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeGreaterThanOrEqualTo(System.TimeSpan minDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThan(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeLessThanOrEqualTo(System.TimeSpan maxDuration, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + } + public class FunctionAssertions : FluentAssertions.Specialized.DelegateAssertions, FluentAssertions.Specialized.FunctionAssertions> + { + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public FunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + protected override string Identifier { get; } + protected override void InvokeSubject() { } + public FluentAssertions.AndWhichConstraint, T> NotThrow(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint, T> NotThrowAfter(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + } + public class GenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions, FluentAssertions.Specialized.GenericAsyncFunctionAssertions> + { + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public GenericAsyncFunctionAssertions(System.Func> subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, TResult>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAfterAsync(System.TimeSpan waitTime, System.TimeSpan pollInterval, string because = "", params object[] becauseArgs) { } + public System.Threading.Tasks.Task, TResult>> NotThrowAsync(string because = "", params object[] becauseArgs) { } + } + public interface IExtractExceptions + { + System.Collections.Generic.IEnumerable OfType(System.Exception actualException) + where T : System.Exception; + } + public class MemberExecutionTime : FluentAssertions.Specialized.ExecutionTime + { + public MemberExecutionTime(T subject, System.Linq.Expressions.Expression> action, FluentAssertions.Common.StartTimer createTimer) { } + } + public class NonGenericAsyncFunctionAssertions : FluentAssertions.Specialized.AsyncFunctionAssertions + { + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor) { } + public NonGenericAsyncFunctionAssertions(System.Func subject, FluentAssertions.Specialized.IExtractExceptions extractor, FluentAssertions.Common.IClock clock) { } + } + public class TaskCompletionSourceAssertions + { + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs) { } + public TaskCompletionSourceAssertions(System.Threading.Tasks.TaskCompletionSource tcs, FluentAssertions.Common.IClock clock) { } + public System.Threading.Tasks.Task, T>> CompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public System.Threading.Tasks.Task NotCompleteWithinAsync(System.TimeSpan timeSpan, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Streams +{ + public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + } + public class BufferedStreamAssertions : FluentAssertions.Streams.StreamAssertions + where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions + { + public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { } + } + public class StreamAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(System.IO.Stream stream) { } + } + public class StreamAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.IO.Stream + where TAssertions : FluentAssertions.Streams.StreamAssertions + { + public StreamAssertions(TSubject stream) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveLength(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HavePosition(long expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSeekable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWriteOnly(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveLength(long unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHavePosition(long unexpected, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Types +{ + public static class AllTypes + { + public static FluentAssertions.Types.TypeSelector From(System.Reflection.Assembly assembly) { } + } + public class ConstructorInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public ConstructorInfoAssertions(System.Reflection.ConstructorInfo constructorInfo) { } + protected override string Identifier { get; } + } + public abstract class MemberInfoAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Reflection.MemberInfo + where TAssertions : FluentAssertions.Types.MemberInfoAssertions + { + protected MemberInfoAssertions(TSubject subject) { } + protected override string Identifier { get; } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint, TAttribute> BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + } + public abstract class MethodBaseAssertions : FluentAssertions.Types.MemberInfoAssertions + where TSubject : System.Reflection.MethodBase + where TAssertions : FluentAssertions.Types.MethodBaseAssertions + { + protected MethodBaseAssertions(TSubject subject) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + } + public class MethodInfoAssertions : FluentAssertions.Types.MethodBaseAssertions + { + public MethodInfoAssertions(System.Reflection.MethodInfo methodInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> NotReturnVoid(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(System.Type returnType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> Return(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint> ReturnVoid(string because = "", params object[] becauseArgs) { } + } + public class MethodInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public MethodInfoSelector(System.Collections.Generic.IEnumerable types) { } + public MethodInfoSelector(System.Type type) { } + public FluentAssertions.Types.MethodInfoSelector ThatArePublicOrInternal { get; } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturnVoid { get; } + public FluentAssertions.Types.MethodInfoSelector ThatReturnVoid { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotAsync() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreNotVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreStatic() { } + public FluentAssertions.Types.MethodInfoSelector ThatAreVirtual() { } + public FluentAssertions.Types.MethodInfoSelector ThatDoNotReturn() { } + public FluentAssertions.Types.MethodInfoSelector ThatReturn() { } + public System.Reflection.MethodInfo[] ToArray() { } + } + public class MethodInfoSelectorAssertions + { + public MethodInfoSelectorAssertions(params System.Reflection.MethodInfo[] methods) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectMethods { get; } + public FluentAssertions.AndConstraint Be(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBe(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAsync(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoAssertions : FluentAssertions.Types.MemberInfoAssertions + { + public PropertyInfoAssertions(System.Reflection.PropertyInfo propertyInfo) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeReadable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeReadable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotReturn(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(System.Type propertyType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Return(string because = "", params object[] becauseArgs) { } + } + public class PropertyInfoSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public PropertyInfoSelector(System.Collections.Generic.IEnumerable types) { } + public PropertyInfoSelector(System.Type type) { } + public FluentAssertions.Types.PropertyInfoSelector ThatArePublicOrInternal { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.PropertyInfoSelector NotOfType() { } + public FluentAssertions.Types.PropertyInfoSelector OfType() { } + public FluentAssertions.Types.TypeSelector ReturnTypes() { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.PropertyInfoSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public System.Reflection.PropertyInfo[] ToArray() { } + } + public class PropertyInfoSelectorAssertions + { + public PropertyInfoSelectorAssertions(params System.Reflection.PropertyInfo[] properties) { } + protected string Context { get; } + public System.Collections.Generic.IEnumerable SubjectProperties { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeWritable(string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeVirtual(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeWritable(string because = "", params object[] becauseArgs) { } + } + public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public TypeAssertions(System.Type type) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Type expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Be(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndWhichConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint HaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveIndexer(System.Type indexerType, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(System.Type propertyType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint Implement(string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotBe(System.Type unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAbstract(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(System.Type type, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeAssignableTo(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(System.Type baseType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDerivedFrom(string because = "", params object[] becauseArgs) + where TBaseClass : class { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeStatic(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveAccessModifier(FluentAssertions.Common.CSharpAccessModifier accessModifier, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveConstructor(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint NotHaveDefaultConstructor(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(System.Type interfaceType, string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(System.Type interfaceType, string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveExplicitProperty(string name, string because = "", params object[] becauseArgs) + where TInterface : class { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(System.Type sourceType, System.Type targetType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveImplicitConversionOperator(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveIndexer(System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveMethod(string name, System.Collections.Generic.IEnumerable parameterTypes, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotHaveProperty(string name, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(System.Type interfaceType, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotImplement(string because = "", params object[] becauseArgs) + where TInterface : class { } + } + public class TypeSelector : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public TypeSelector(System.Collections.Generic.IEnumerable types) { } + public TypeSelector(System.Type type) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { } + public FluentAssertions.Types.TypeSelector ThatAreClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotClasses() { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWith() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotDecoratedWithOrInherit() + where TAttribute : System.Attribute { } + public FluentAssertions.Types.TypeSelector ThatAreNotInNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreNotStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreNotUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatAreStatic() { } + public FluentAssertions.Types.TypeSelector ThatAreUnderNamespace(string @namespace) { } + public FluentAssertions.Types.TypeSelector ThatDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotDeriveFrom() { } + public FluentAssertions.Types.TypeSelector ThatDoNotImplement() { } + public FluentAssertions.Types.TypeSelector ThatImplement() { } + public FluentAssertions.Types.TypeSelector ThatSatisfy(System.Func predicate) { } + public System.Type[] ToArray() { } + public FluentAssertions.Types.TypeSelector UnwrapEnumerableTypes() { } + public FluentAssertions.Types.TypeSelector UnwrapTaskTypes() { } + } + public class TypeSelectorAssertions + { + public TypeSelectorAssertions(params System.Type[] types) { } + public System.Collections.Generic.IEnumerable Subject { get; } + public FluentAssertions.AndConstraint BeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint BeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public override bool Equals(object obj) { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWith(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeDecoratedWithOrInherit(System.Linq.Expressions.Expression> isMatchingAttributePredicate, string because = "", params object[] becauseArgs) + where TAttribute : System.Attribute { } + public FluentAssertions.AndConstraint NotBeInNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeSealed(string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeUnderNamespace(string @namespace, string because = "", params object[] becauseArgs) { } + } +} +namespace FluentAssertions.Xml +{ + public class XAttributeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XAttributeAssertions(System.Xml.Linq.XAttribute attribute) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XAttribute expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XAttribute unexpected, string because = "", params object[] becauseArgs) { } + } + public class XDocumentAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XDocumentAssertions(System.Xml.Linq.XDocument document) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } + } + public class XElementAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + { + public XElementAssertions(System.Xml.Linq.XElement xElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint Be(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XElement expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlElementAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlElementAssertions(System.Xml.XmlElement xmlElement) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint HaveAttribute(string expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveAttributeWithNamespace(string expectedName, string expectedNamespace, string expectedValue, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElement(string expectedName, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint HaveElementWithNamespace(string expectedName, string expectedNamespace, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint HaveInnerText(string expected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(System.Xml.XmlNode xmlNode) { } + } + public class XmlNodeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions + where TSubject : System.Xml.XmlNode + where TAssertions : FluentAssertions.Xml.XmlNodeAssertions + { + public XmlNodeAssertions(TSubject xmlNode) { } + protected override string Identifier { get; } + public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.XmlNode expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.XmlNode unexpected, string because = "", params object[] becauseArgs) { } + } + public class XmlNodeFormatter : FluentAssertions.Formatting.IValueFormatter + { + public XmlNodeFormatter() { } + public bool CanHandle(object value) { } + public void Format(object value, FluentAssertions.Formatting.FormattedObjectGraph formattedGraph, FluentAssertions.Formatting.FormattingContext context, FluentAssertions.Formatting.FormatChild formatChild) { } + } +} \ No newline at end of file From ca551e7a9131d388e33284792baa046d825f319a Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 06:35:12 +0200 Subject: [PATCH 33/46] Add tests for using `AssertionScope` --- .../Xml/XDocumentAssertionSpecs.cs | 21 +++++++++++++++++++ .../Xml/XElementAssertionSpecs.cs | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index f3072040db..d817b7f4ea 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1,5 +1,6 @@ using System; using System.Xml.Linq; +using FluentAssertions.Execution; using FluentAssertions.Formatting; using Xunit; using Xunit.Sdk; @@ -1175,6 +1176,26 @@ public void When_asserting_document_has_two_child_elements_and_it_does_it_succee document.Should().HaveElement("child", Exactly.Twice()); } + [Fact] + public void Asserting_document_inside_an_assertion_scope_it_checks_the_whole_assertion_scope_before_failing() + { + // Arrange + XDocument document = null; + + // Act + Action act = () => + { + using (new AssertionScope()) + { + document.Should().HaveElement("child", Exactly.Twice()); + document.Should().HaveElement("child", Exactly.Twice()); + } + }; + + // Assert + act.Should().NotThrow(); + } + [Fact] public void When_asserting_document_has_two_child_elements_but_it_does_have_three_it_fails() { diff --git a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs index 069eb0d3b8..edd6720004 100644 --- a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs @@ -1,5 +1,6 @@ using System; using System.Xml.Linq; +using FluentAssertions.Execution; using Xunit; using Xunit.Sdk; @@ -1245,6 +1246,26 @@ public void Element_has_two_child_elements_and_it_expected_does_it_succeeds() element.Should().HaveElement("child", Exactly.Twice()); } + [Fact] + public void Asserting_element_inside_an_assertion_scope_it_checks_the_whole_assertion_scope_before_failing() + { + // Arrange + XElement element = null; + + // Act + Action act = () => + { + using (new AssertionScope()) + { + element.Should().HaveElement("child", Exactly.Twice()); + element.Should().HaveElement("child", Exactly.Twice()); + } + }; + + // Assert + act.Should().NotThrow(); + } + [Fact] public void Element_has_two_child_elements_and_three_expected_it_fails() { From f5cab9f18d5192191ebe348e097e40d5d0e18140 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 06:43:24 +0200 Subject: [PATCH 34/46] Fix release notes --- docs/_pages/releases.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_pages/releases.md b/docs/_pages/releases.md index c79d9dbf71..8f5da41b29 100644 --- a/docs/_pages/releases.md +++ b/docs/_pages/releases.md @@ -13,6 +13,7 @@ sidebar: * Add `BeDefined` and `NotBeDefined` to assert on existence of an enum value - [#1888](https://github.com/fluentassertions/fluentassertions/pull/1888) * Added the ability to exclude fields & properties marked as non-browsable in the code editor from structural equality comparisons - [#1807](https://github.com/fluentassertions/fluentassertions/pull/1807) & [#1812](https://github.com/fluentassertions/fluentassertions/pull/1812) * Assertions on the collection types in System.Data (`DataSet.Tables`, `DataTable.Columns`, `DataTable.Rows`) have been restored - [#1812](https://github.com/fluentassertions/fluentassertions/pull/1812) +* Added overload for `HaveElement` for `XDocument` and `XElement` to assert on number of XML nodes - [#1880](https://github.com/fluentassertions/fluentassertions/pull/1880) ## 6.6.0 @@ -23,7 +24,6 @@ sidebar: * Added `NotBe` for nullable boolean values - [#1865](https://github.com/fluentassertions/fluentassertions/pull/1865) * Added a new overload to `MatchRegex()` to assert on the number of regex matches - [#1869](https://github.com/fluentassertions/fluentassertions/pull/1869) * Added difference to numeric assertion failure messages - [#1859](https://github.com/fluentassertions/fluentassertions/pull/1859) -* Added `HaveSingleElement` and overload for `HaveElement` for `XDocument` to assert on number of XML nodes - [#1880](https://github.com/fluentassertions/fluentassertions/pull/1880) ### Fixes * `EnumAssertions.Be` did not determine the caller name - [#1835](https://github.com/fluentassertions/fluentassertions/pull/1835) From 8c622005e424783b25c69cc8bdec57a1cea0b5f3 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 06:44:21 +0200 Subject: [PATCH 35/46] Approve API --- .../FluentAssertions/net47.verified.txt | 43 +++++++++++++++++++ .../FluentAssertions/net6.0.verified.txt | 43 +++++++++++++++++++ .../netcoreapp2.1.verified.txt | 43 +++++++++++++++++++ .../netcoreapp3.0.verified.txt | 43 +++++++++++++++++++ .../netstandard2.0.verified.txt | 43 +++++++++++++++++++ .../netstandard2.1.verified.txt | 43 +++++++++++++++++++ 6 files changed, 258 insertions(+) diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt index f3c17cc9de..bc03654bfa 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt @@ -58,6 +58,9 @@ namespace FluentAssertions public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } @@ -118,6 +121,14 @@ namespace FluentAssertions where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] public static void Should(this FluentAssertions.Primitives.GuidAssertions _) where TAssertions : FluentAssertions.Primitives.GuidAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + @@ -187,11 +198,25 @@ namespace FluentAssertions { public CustomAssertionAttribute() { } } + public static class DataColumnCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataRowAssertionExtensions { public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) where TDataRow : System.Data.DataRow { } } + public static class DataRowCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataSetAssertionExtensions { public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) @@ -202,6 +227,15 @@ namespace FluentAssertions public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) where TDataTable : System.Data.DataTable { } } + public static class DataTableCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class EnumAssertionsExtensions { public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) @@ -803,6 +837,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; set; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -823,6 +858,8 @@ namespace FluentAssertions.Equivalency FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + bool ExcludeNonBrowsableOnExpectation { get; } + bool IgnoreNonBrowsableOnSubject { get; } FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } bool IsRecursive { get; } @@ -858,6 +895,7 @@ namespace FluentAssertions.Equivalency { System.Type DeclaringType { get; } FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + bool IsBrowsable { get; } System.Type ReflectedType { get; } FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } object GetValue(object obj); @@ -961,6 +999,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -989,8 +1028,10 @@ namespace FluentAssertions.Equivalency public TSelf ExcludingFields() { } public TSelf ExcludingMissingMembers() { } public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingNonBrowsableMembers() { } public TSelf ExcludingProperties() { } public TSelf IgnoringCyclicReferences() { } + public TSelf IgnoringNonBrowsableMembersOnSubject() { } public TSelf Including(System.Linq.Expressions.Expression> predicate) { } public TSelf IncludingAllDeclaredProperties() { } public TSelf IncludingAllRuntimeProperties() { } @@ -1887,6 +1928,7 @@ namespace FluentAssertions.Primitives public TEnum? Subject { get; } public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } public override bool Equals(object obj) { } @@ -1899,6 +1941,7 @@ namespace FluentAssertions.Primitives public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) where T : struct, System.Enum { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt index e946c4eec9..18bdc90ee4 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt @@ -58,6 +58,9 @@ namespace FluentAssertions public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } public static FluentAssertions.Primitives.DateOnlyAssertions Should(this System.DateOnly actualValue) { } public static FluentAssertions.Primitives.NullableDateOnlyAssertions Should(this System.DateOnly? actualValue) { } public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } @@ -126,6 +129,14 @@ namespace FluentAssertions where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] public static void Should(this FluentAssertions.Primitives.GuidAssertions _) where TAssertions : FluentAssertions.Primitives.GuidAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + @@ -199,11 +210,25 @@ namespace FluentAssertions { public CustomAssertionAttribute() { } } + public static class DataColumnCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataRowAssertionExtensions { public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) where TDataRow : System.Data.DataRow { } } + public static class DataRowCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataSetAssertionExtensions { public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) @@ -214,6 +239,15 @@ namespace FluentAssertions public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) where TDataTable : System.Data.DataTable { } } + public static class DataTableCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class EnumAssertionsExtensions { public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) @@ -815,6 +849,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; set; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -835,6 +870,8 @@ namespace FluentAssertions.Equivalency FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + bool ExcludeNonBrowsableOnExpectation { get; } + bool IgnoreNonBrowsableOnSubject { get; } FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } bool IsRecursive { get; } @@ -870,6 +907,7 @@ namespace FluentAssertions.Equivalency { System.Type DeclaringType { get; } FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + bool IsBrowsable { get; } System.Type ReflectedType { get; } FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } object GetValue(object obj); @@ -973,6 +1011,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -1001,8 +1040,10 @@ namespace FluentAssertions.Equivalency public TSelf ExcludingFields() { } public TSelf ExcludingMissingMembers() { } public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingNonBrowsableMembers() { } public TSelf ExcludingProperties() { } public TSelf IgnoringCyclicReferences() { } + public TSelf IgnoringNonBrowsableMembersOnSubject() { } public TSelf Including(System.Linq.Expressions.Expression> predicate) { } public TSelf IncludingAllDeclaredProperties() { } public TSelf IncludingAllRuntimeProperties() { } @@ -1944,6 +1985,7 @@ namespace FluentAssertions.Primitives public TEnum? Subject { get; } public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } public override bool Equals(object obj) { } @@ -1956,6 +1998,7 @@ namespace FluentAssertions.Primitives public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) where T : struct, System.Enum { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt index 918c96f268..c911a5d50f 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt @@ -58,6 +58,9 @@ namespace FluentAssertions public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } @@ -118,6 +121,14 @@ namespace FluentAssertions where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] public static void Should(this FluentAssertions.Primitives.GuidAssertions _) where TAssertions : FluentAssertions.Primitives.GuidAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + @@ -187,11 +198,25 @@ namespace FluentAssertions { public CustomAssertionAttribute() { } } + public static class DataColumnCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataRowAssertionExtensions { public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) where TDataRow : System.Data.DataRow { } } + public static class DataRowCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataSetAssertionExtensions { public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) @@ -202,6 +227,15 @@ namespace FluentAssertions public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) where TDataTable : System.Data.DataTable { } } + public static class DataTableCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class EnumAssertionsExtensions { public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) @@ -803,6 +837,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; set; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -823,6 +858,8 @@ namespace FluentAssertions.Equivalency FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + bool ExcludeNonBrowsableOnExpectation { get; } + bool IgnoreNonBrowsableOnSubject { get; } FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } bool IsRecursive { get; } @@ -858,6 +895,7 @@ namespace FluentAssertions.Equivalency { System.Type DeclaringType { get; } FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + bool IsBrowsable { get; } System.Type ReflectedType { get; } FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } object GetValue(object obj); @@ -961,6 +999,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -989,8 +1028,10 @@ namespace FluentAssertions.Equivalency public TSelf ExcludingFields() { } public TSelf ExcludingMissingMembers() { } public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingNonBrowsableMembers() { } public TSelf ExcludingProperties() { } public TSelf IgnoringCyclicReferences() { } + public TSelf IgnoringNonBrowsableMembersOnSubject() { } public TSelf Including(System.Linq.Expressions.Expression> predicate) { } public TSelf IncludingAllDeclaredProperties() { } public TSelf IncludingAllRuntimeProperties() { } @@ -1887,6 +1928,7 @@ namespace FluentAssertions.Primitives public TEnum? Subject { get; } public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } public override bool Equals(object obj) { } @@ -1899,6 +1941,7 @@ namespace FluentAssertions.Primitives public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) where T : struct, System.Enum { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt index d56163133f..6abac305bf 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt @@ -58,6 +58,9 @@ namespace FluentAssertions public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } @@ -118,6 +121,14 @@ namespace FluentAssertions where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] public static void Should(this FluentAssertions.Primitives.GuidAssertions _) where TAssertions : FluentAssertions.Primitives.GuidAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + @@ -187,11 +198,25 @@ namespace FluentAssertions { public CustomAssertionAttribute() { } } + public static class DataColumnCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataRowAssertionExtensions { public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) where TDataRow : System.Data.DataRow { } } + public static class DataRowCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataSetAssertionExtensions { public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) @@ -202,6 +227,15 @@ namespace FluentAssertions public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) where TDataTable : System.Data.DataTable { } } + public static class DataTableCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class EnumAssertionsExtensions { public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) @@ -803,6 +837,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; set; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -823,6 +858,8 @@ namespace FluentAssertions.Equivalency FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + bool ExcludeNonBrowsableOnExpectation { get; } + bool IgnoreNonBrowsableOnSubject { get; } FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } bool IsRecursive { get; } @@ -858,6 +895,7 @@ namespace FluentAssertions.Equivalency { System.Type DeclaringType { get; } FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + bool IsBrowsable { get; } System.Type ReflectedType { get; } FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } object GetValue(object obj); @@ -961,6 +999,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -989,8 +1028,10 @@ namespace FluentAssertions.Equivalency public TSelf ExcludingFields() { } public TSelf ExcludingMissingMembers() { } public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingNonBrowsableMembers() { } public TSelf ExcludingProperties() { } public TSelf IgnoringCyclicReferences() { } + public TSelf IgnoringNonBrowsableMembersOnSubject() { } public TSelf Including(System.Linq.Expressions.Expression> predicate) { } public TSelf IncludingAllDeclaredProperties() { } public TSelf IncludingAllRuntimeProperties() { } @@ -1887,6 +1928,7 @@ namespace FluentAssertions.Primitives public TEnum? Subject { get; } public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } public override bool Equals(object obj) { } @@ -1899,6 +1941,7 @@ namespace FluentAssertions.Primitives public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) where T : struct, System.Enum { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt index 9a95d6f0ff..3f298248b7 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt @@ -57,6 +57,9 @@ namespace FluentAssertions public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } @@ -117,6 +120,14 @@ namespace FluentAssertions where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] public static void Should(this FluentAssertions.Primitives.GuidAssertions _) where TAssertions : FluentAssertions.Primitives.GuidAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + @@ -186,11 +197,25 @@ namespace FluentAssertions { public CustomAssertionAttribute() { } } + public static class DataColumnCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataRowAssertionExtensions { public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) where TDataRow : System.Data.DataRow { } } + public static class DataRowCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataSetAssertionExtensions { public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) @@ -201,6 +226,15 @@ namespace FluentAssertions public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) where TDataTable : System.Data.DataTable { } } + public static class DataTableCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class EnumAssertionsExtensions { public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) @@ -796,6 +830,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; set; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -816,6 +851,8 @@ namespace FluentAssertions.Equivalency FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + bool ExcludeNonBrowsableOnExpectation { get; } + bool IgnoreNonBrowsableOnSubject { get; } FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } bool IsRecursive { get; } @@ -851,6 +888,7 @@ namespace FluentAssertions.Equivalency { System.Type DeclaringType { get; } FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + bool IsBrowsable { get; } System.Type ReflectedType { get; } FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } object GetValue(object obj); @@ -954,6 +992,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -982,8 +1021,10 @@ namespace FluentAssertions.Equivalency public TSelf ExcludingFields() { } public TSelf ExcludingMissingMembers() { } public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingNonBrowsableMembers() { } public TSelf ExcludingProperties() { } public TSelf IgnoringCyclicReferences() { } + public TSelf IgnoringNonBrowsableMembersOnSubject() { } public TSelf Including(System.Linq.Expressions.Expression> predicate) { } public TSelf IncludingAllDeclaredProperties() { } public TSelf IncludingAllRuntimeProperties() { } @@ -1839,6 +1880,7 @@ namespace FluentAssertions.Primitives public TEnum? Subject { get; } public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } public override bool Equals(object obj) { } @@ -1851,6 +1893,7 @@ namespace FluentAssertions.Primitives public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) where T : struct, System.Enum { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt index cefe068a24..bdfbec9742 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt @@ -58,6 +58,9 @@ namespace FluentAssertions public static FluentAssertions.Specialized.ActionAssertions Should(this System.Action action) { } public static FluentAssertions.Collections.StringCollectionAssertions Should(this System.Collections.Generic.IEnumerable @this) { } public static FluentAssertions.Data.DataColumnAssertions Should(this System.Data.DataColumn actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataColumnCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataRowCollection actualValue) { } + public static FluentAssertions.Collections.GenericCollectionAssertions Should(this System.Data.DataTableCollection actualValue) { } public static FluentAssertions.Primitives.DateTimeAssertions Should(this System.DateTime actualValue) { } public static FluentAssertions.Primitives.NullableDateTimeAssertions Should(this System.DateTime? actualValue) { } public static FluentAssertions.Primitives.DateTimeOffsetAssertions Should(this System.DateTimeOffset actualValue) { } @@ -118,6 +121,14 @@ namespace FluentAssertions where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeOffsetRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeOffsetAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] + public static void Should(this FluentAssertions.Primitives.DateTimeRangeAssertions _) + where TAssertions : FluentAssertions.Primitives.DateTimeAssertions { } + [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + + "ly following \'And\'", true)] public static void Should(this FluentAssertions.Primitives.GuidAssertions _) where TAssertions : FluentAssertions.Primitives.GuidAssertions { } [System.Obsolete("You are asserting the \'AndConstraint\' itself. Remove the \'Should()\' method direct" + @@ -187,11 +198,25 @@ namespace FluentAssertions { public CustomAssertionAttribute() { } } + public static class DataColumnCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataColumnCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataRowAssertionExtensions { public static FluentAssertions.Data.DataRowAssertions Should(this TDataRow actualValue) where TDataRow : System.Data.DataRow { } } + public static class DataRowCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataRowCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class DataSetAssertionExtensions { public static FluentAssertions.Data.DataSetAssertions Should(this TDataSet actualValue) @@ -202,6 +227,15 @@ namespace FluentAssertions public static FluentAssertions.Data.DataTableAssertions Should(this TDataTable actualValue) where TDataTable : System.Data.DataTable { } } + public static class DataTableCollectionAssertionExtensions + { + public static FluentAssertions.AndConstraint> BeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection expected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> HaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotBeSameAs(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection unexpected, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataSet otherDataSet, string because = "", params object[] becauseArgs) { } + public static FluentAssertions.AndConstraint> NotHaveSameCount(this FluentAssertions.Collections.GenericCollectionAssertions assertion, System.Data.DataTableCollection otherCollection, string because = "", params object[] becauseArgs) { } + } public static class EnumAssertionsExtensions { public static FluentAssertions.Primitives.EnumAssertions Should(this TEnum @enum) @@ -803,6 +837,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; set; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -823,6 +858,8 @@ namespace FluentAssertions.Equivalency FluentAssertions.Equivalency.ConversionSelector ConversionSelector { get; } FluentAssertions.Equivalency.CyclicReferenceHandling CyclicReferenceHandling { get; } FluentAssertions.Equivalency.EnumEquivalencyHandling EnumEquivalencyHandling { get; } + bool ExcludeNonBrowsableOnExpectation { get; } + bool IgnoreNonBrowsableOnSubject { get; } FluentAssertions.Equivalency.MemberVisibility IncludedFields { get; } FluentAssertions.Equivalency.MemberVisibility IncludedProperties { get; } bool IsRecursive { get; } @@ -858,6 +895,7 @@ namespace FluentAssertions.Equivalency { System.Type DeclaringType { get; } FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + bool IsBrowsable { get; } System.Type ReflectedType { get; } FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } object GetValue(object obj); @@ -961,6 +999,7 @@ namespace FluentAssertions.Equivalency public System.Type DeclaringType { get; } public override string Description { get; } public FluentAssertions.Common.CSharpAccessModifier GetterAccessibility { get; } + public bool IsBrowsable { get; } public System.Type ReflectedType { get; } public FluentAssertions.Common.CSharpAccessModifier SetterAccessibility { get; } public object GetValue(object obj) { } @@ -989,8 +1028,10 @@ namespace FluentAssertions.Equivalency public TSelf ExcludingFields() { } public TSelf ExcludingMissingMembers() { } public TSelf ExcludingNestedObjects() { } + public TSelf ExcludingNonBrowsableMembers() { } public TSelf ExcludingProperties() { } public TSelf IgnoringCyclicReferences() { } + public TSelf IgnoringNonBrowsableMembersOnSubject() { } public TSelf Including(System.Linq.Expressions.Expression> predicate) { } public TSelf IncludingAllDeclaredProperties() { } public TSelf IncludingAllRuntimeProperties() { } @@ -1887,6 +1928,7 @@ namespace FluentAssertions.Primitives public TEnum? Subject { get; } public FluentAssertions.AndConstraint Be(TEnum expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint Be(TEnum? expected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint BeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint BeOneOf(params TEnum[] validValues) { } public FluentAssertions.AndConstraint BeOneOf(System.Collections.Generic.IEnumerable validValues, string because = "", params object[] becauseArgs) { } public override bool Equals(object obj) { } @@ -1899,6 +1941,7 @@ namespace FluentAssertions.Primitives public FluentAssertions.AndConstraint Match(System.Linq.Expressions.Expression> predicate, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(TEnum? unexpected, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndConstraint NotBeDefined(string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveFlag(TEnum unexpectedFlag, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveSameNameAs(T unexpected, string because = "", params object[] becauseArgs) where T : struct, System.Enum { } From af054b6fb2c5d1e8c4f0f10500b5ce9b0a038b55 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 07:31:40 +0200 Subject: [PATCH 36/46] Move `Guard` at the top of the method --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index 4116aeee32..c7c42b83c9 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -286,25 +286,25 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { - Execute.Assertion + Guard.ThrowIfArgumentIsNull(expected, nameof(expected), + "Cannot assert the document has an element count if the element name is ."); + + bool success = Execute.Assertion .ForCondition(Subject is not null) .BecauseOf(because, becauseArgs) .FailWith("Cannot assert the count if the document itself is ."); - Guard.ThrowIfArgumentIsNull(expected, nameof(expected), - "Cannot assert the document has an element count if the element name is ."); + IEnumerable xElements = Enumerable.Empty(); - bool success = Execute.Assertion + if (success) + { + Execute.Assertion .ForCondition(Subject.Root is not null) .BecauseOf(because, becauseArgs) .FailWith( "Expected {context:subject} to have root element with child {0}{reason}, but it has no root element.", expected.ToString()); - IEnumerable xElements = Enumerable.Empty(); - - if (success) - { xElements = Subject.Root.Elements(expected); int actualCount = xElements.Count(); From 6041e4e086d335b8618535a3dc842bb86d494950 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 08:24:16 +0200 Subject: [PATCH 37/46] Add another test case for using `AssertionScope` --- .../Xml/XDocumentAssertions.cs | 23 +++++++++++-------- .../Xml/XDocumentAssertionSpecs.cs | 20 ++++++++++++++++ 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index c7c42b83c9..087866c1f6 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -298,22 +298,25 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected if (success) { - Execute.Assertion + success = Execute.Assertion .ForCondition(Subject.Root is not null) .BecauseOf(because, becauseArgs) .FailWith( "Expected {context:subject} to have root element with child {0}{reason}, but it has no root element.", expected.ToString()); - xElements = Subject.Root.Elements(expected); - int actualCount = xElements.Count(); - - Execute.Assertion - .ForConstraint(occurrenceConstraint, actualCount) - .BecauseOf(because, becauseArgs) - .FailWith( - "Expected {context:subject} to have {0} child element(s) {1}{reason}, but found {2}.", - occurrenceConstraint.ExpectedCount, expected.ToString(), actualCount); + if (success) + { + xElements = Subject.Root.Elements(expected); + int actualCount = xElements.Count(); + + Execute.Assertion + .ForConstraint(occurrenceConstraint, actualCount) + .BecauseOf(because, becauseArgs) + .FailWith( + "Expected {context:subject} to have {0} child element(s) {1}{reason}, but found {2}.", + occurrenceConstraint.ExpectedCount, expected.ToString(), actualCount); + } } return new AndWhichConstraint(this, xElements); diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index d817b7f4ea..3fe122c364 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1196,6 +1196,26 @@ public void Asserting_document_inside_an_assertion_scope_it_checks_the_whole_ass act.Should().NotThrow(); } + [Fact] + public void Asserting_document_inside_an_assertion_scope_it_checks_the_whole_assertion_scope_before_failing_() + { + // Arrange + XDocument document = new(); + + // Act + Action act = () => + { + using (new AssertionScope()) + { + document.Should().HaveElement("child", Exactly.Twice()); + document.Should().HaveElement("child", Exactly.Twice()); + } + }; + + // Assert + act.Should().NotThrow(); + } + [Fact] public void When_asserting_document_has_two_child_elements_but_it_does_have_three_it_fails() { From fccddfe09559dbabf885073bfdeb4cb4f812e55f Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 08:27:10 +0200 Subject: [PATCH 38/46] Fix documentation --- docs/_pages/xml.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/_pages/xml.md b/docs/_pages/xml.md index 1232b1a354..b01a40ba40 100644 --- a/docs/_pages/xml.md +++ b/docs/_pages/xml.md @@ -12,7 +12,6 @@ Fluent Assertions has support for assertions on several of the LINQ-to-XML class ```csharp xDocument.Should().HaveRoot("configuration"); xDocument.Should().HaveElement("settings"); -xDocument.Should().HaveSingleElement("settings"); xDocument.Should().HaveElement("settings", Exactly.Once()); xDocument.Should().HaveElement("settings", AtLeast.Twice()); From bafed48ea6e6fcee04b39139bc7669a1d018dc2c Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 09:03:28 +0200 Subject: [PATCH 39/46] Fix API --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 6 +++--- Src/FluentAssertions/Xml/XElementAssertions.cs | 6 +++--- .../ApprovedApi/FluentAssertions/net47.verified.txt | 8 ++++---- .../ApprovedApi/FluentAssertions/net6.0.verified.txt | 8 ++++---- .../FluentAssertions/netcoreapp2.1.verified.txt | 8 ++++---- .../FluentAssertions/netcoreapp3.0.verified.txt | 8 ++++---- .../FluentAssertions/netstandard2.0.verified.txt | 8 ++++---- .../FluentAssertions/netstandard2.1.verified.txt | 8 ++++---- 8 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index 087866c1f6..21d0c6e7f9 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -213,7 +213,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected /// /// Zero or more objects to format using the placeholders in . /// - public AndWhichConstraint HaveElement(string expected, + public AndWhichConstraint> HaveElement(string expected, OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { Guard.ThrowIfArgumentIsNull(expected, nameof(expected), @@ -282,7 +282,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected /// /// Zero or more objects to format using the placeholders in . /// - public AndWhichConstraint HaveElement(XName expected, + public AndWhichConstraint> HaveElement(XName expected, OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { @@ -319,7 +319,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected } } - return new AndWhichConstraint(this, xElements); + return new AndWhichConstraint>(this, xElements); } /// diff --git a/Src/FluentAssertions/Xml/XElementAssertions.cs b/Src/FluentAssertions/Xml/XElementAssertions.cs index d7f4b79f23..dc192b213f 100644 --- a/Src/FluentAssertions/Xml/XElementAssertions.cs +++ b/Src/FluentAssertions/Xml/XElementAssertions.cs @@ -307,7 +307,7 @@ public AndConstraint HaveValue(string expected, string becau /// /// Zero or more objects to format using the placeholders in . /// - public AndWhichConstraint HaveElement(XName expected, + public AndWhichConstraint> HaveElement(XName expected, OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { @@ -336,7 +336,7 @@ public AndConstraint HaveValue(string expected, string becau occurrenceConstraint.ExpectedCount, expected.ToString(), actualCount); } - return new AndWhichConstraint(this, xElements); + return new AndWhichConstraint>(this, xElements); } /// @@ -356,7 +356,7 @@ public AndConstraint HaveValue(string expected, string becau /// /// Zero or more objects to format using the placeholders in . /// - public AndWhichConstraint HaveElement(string expected, + public AndWhichConstraint> HaveElement(string expected, OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { Guard.ThrowIfArgumentIsNull(expected, nameof(expected), diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt index bc03654bfa..9282cf06b4 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt @@ -2679,8 +2679,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } @@ -2696,8 +2696,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt index 18bdc90ee4..c3ec1fb4ec 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net6.0.verified.txt @@ -2799,8 +2799,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } @@ -2816,8 +2816,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt index c911a5d50f..4c39aa32e2 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt @@ -2681,8 +2681,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } @@ -2698,8 +2698,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt index 6abac305bf..57b59d0255 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt @@ -2681,8 +2681,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } @@ -2698,8 +2698,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt index 3f298248b7..9cb07fe607 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt @@ -2631,8 +2631,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } @@ -2648,8 +2648,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt index bdfbec9742..9d519d5363 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt @@ -2681,8 +2681,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint BeEquivalentTo(System.Xml.Linq.XDocument expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveRoot(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XDocument unexpected, string because = "", params object[] becauseArgs) { } @@ -2698,8 +2698,8 @@ namespace FluentAssertions.Xml public FluentAssertions.AndConstraint HaveAttribute(System.Xml.Linq.XName expectedName, string expectedValue, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } - public FluentAssertions.AndWhichConstraint HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(string expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } + public FluentAssertions.AndWhichConstraint> HaveElement(System.Xml.Linq.XName expected, FluentAssertions.OccurrenceConstraint occurrenceConstraint, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint HaveValue(string expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBe(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotBeEquivalentTo(System.Xml.Linq.XElement unexpected, string because = "", params object[] becauseArgs) { } From e86f05a08bf0713a39e90668cbda91f66fd5de2a Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 09:03:49 +0200 Subject: [PATCH 40/46] Add missing tests for `Guard` --- .../Xml/XDocumentAssertionSpecs.cs | 41 +++++++++++++++++- .../Xml/XElementAssertionSpecs.cs | 42 +++++++++++++++++-- 2 files changed, 78 insertions(+), 5 deletions(-) diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index 3fe122c364..029d6a5391 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1235,6 +1235,44 @@ public void When_asserting_document_has_two_child_elements_but_it_does_have_thre "Expected document to have 2 child element(s) \"child\", but found 3."); } + [Fact] + public void Document_is_valid_and_expected_null_with_string_overload_it_fails() + { + // Arrange + var document = XDocument.Parse( + @" + + + + "); + + // Act + Action act = () => document.Should().HaveElement(null, Exactly.Twice()); + + // Assert + act.Should().Throw().WithMessage( + "Cannot assert the document has an element if the expected name is .*"); + } + + [Fact] + public void Document_is_valid_and_expected_null_with_x_name_overload_it_fails() + { + // Arrange + var document = XDocument.Parse( + @" + + + + "); + + // Act + Action act = () => document.Should().HaveElement((XName)null, Exactly.Twice()); + + // Assert + act.Should().Throw().WithMessage( + "Cannot assert the document has an element count if the element name is .*"); + } + [Fact] public void Chaining_which_after_asserting_and_the_document_has_more_than_two_child_elements_it_fails() { @@ -1251,8 +1289,7 @@ public void Chaining_which_after_asserting_and_the_document_has_more_than_two_ch .Which.Should().NotBeNull(); // Assert - act.Should().Throw().WithMessage( - "More than one object found. FluentAssertions cannot determine which object is meant*"); + act.Should().NotThrow(); } [Fact] diff --git a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs index edd6720004..70fb3899da 100644 --- a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs @@ -1286,7 +1286,26 @@ public void Element_has_two_child_elements_and_three_expected_it_fails() } [Fact] - public void Chaining_which_after_asserting_and_the_element_has_more_than_two_child_elements_it_fails() + public void Element_is_valid_and_expected_null_with_string_overload_it_fails() + { + // Arrange + var element = XElement.Parse( + @" + + + + "); + + // Act + Action act = () => element.Should().HaveElement((string)null, Exactly.Twice()); + + // Assert + act.Should().Throw().WithMessage( + "Cannot assert the element has an element if the expected name is .*"); + } + + [Fact] + public void Element_is_valid_and_expected_null_with_x_name_overload_it_fails() { // Arrange var element = XElement.Parse( @@ -1296,13 +1315,30 @@ public void Chaining_which_after_asserting_and_the_element_has_more_than_two_chi "); + // Act + Action act = () => element.Should().HaveElement((XName)null, Exactly.Twice()); + + // Assert + act.Should().Throw().WithMessage( + "Cannot assert the element has an element count if the element name is .*"); + } + + [Fact] + public void Chaining_which_after_asserting_and_the_element_has_more_than_two_child_elements_it_fails() + { + // Arrange + var element = XElement.Parse( + @" + + + "); + // Act Action act = () => element.Should().HaveElement("child", AtLeast.Twice()) .Which.Should().NotBeNull(); // Assert - act.Should().Throw().WithMessage( - "More than one object found. FluentAssertions cannot determine which object is meant*"); + act.Should().NotThrow(); } [Fact] From 679f0ff749dee8f44914e7edd83f46a4e04d6f7a Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 09:22:56 +0200 Subject: [PATCH 41/46] Re-phrase failure message to include occurrence mode --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 6 ++++-- Src/FluentAssertions/Xml/XElementAssertions.cs | 6 ++++-- Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs | 4 ++-- Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs | 5 +++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index 21d0c6e7f9..ef6aceac3a 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -314,8 +314,10 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected .ForConstraint(occurrenceConstraint, actualCount) .BecauseOf(because, becauseArgs) .FailWith( - "Expected {context:subject} to have {0} child element(s) {1}{reason}, but found {2}.", - occurrenceConstraint.ExpectedCount, expected.ToString(), actualCount); + $"Expected {{context:subject}} to have {occurrenceConstraint.Mode} {{0}} child element(s) {{1}}{{reason}}, but found {{2}}.", + occurrenceConstraint.ExpectedCount, + expected.ToString(), + actualCount); } } diff --git a/Src/FluentAssertions/Xml/XElementAssertions.cs b/Src/FluentAssertions/Xml/XElementAssertions.cs index dc192b213f..380714f0dd 100644 --- a/Src/FluentAssertions/Xml/XElementAssertions.cs +++ b/Src/FluentAssertions/Xml/XElementAssertions.cs @@ -332,8 +332,10 @@ public AndConstraint HaveValue(string expected, string becau .ForConstraint(occurrenceConstraint, actualCount) .BecauseOf(because, becauseArgs) .FailWith( - "Expected {context:subject} to have {0} child element(s) {1}{reason}, but found {2}.", - occurrenceConstraint.ExpectedCount, expected.ToString(), actualCount); + $"Expected {{context:subject}} to have {occurrenceConstraint.Mode} {{0}} child element(s) {{1}}{{reason}}, but found {{2}}.", + occurrenceConstraint.ExpectedCount, + expected.ToString(), + actualCount); } return new AndWhichConstraint>(this, xElements); diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index 029d6a5391..2de6972558 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1232,7 +1232,7 @@ public void When_asserting_document_has_two_child_elements_but_it_does_have_thre // Assert act.Should().Throw().WithMessage( - "Expected document to have 2 child element(s) \"child\", but found 3."); + "Expected document to have *exactly* 2 child element(s) \"child\", but found 3."); } [Fact] @@ -1247,7 +1247,7 @@ public void Document_is_valid_and_expected_null_with_string_overload_it_fails() "); // Act - Action act = () => document.Should().HaveElement(null, Exactly.Twice()); + Action act = () => document.Should().HaveElement((string)null, Exactly.Twice()); // Assert act.Should().Throw().WithMessage( diff --git a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs index 70fb3899da..17fe547f32 100644 --- a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs @@ -1282,7 +1282,7 @@ public void Element_has_two_child_elements_and_three_expected_it_fails() // Assert act.Should().Throw().WithMessage( - "Expected element to have 2 child element(s) \"child\", but found 3."); + "Expected element to have *exactly*2 child element(s) \"child\", but found 3."); } [Fact] @@ -1330,7 +1330,8 @@ public void Chaining_which_after_asserting_and_the_element_has_more_than_two_chi var element = XElement.Parse( @" - + + "); // Act From a5085eb90cf39d78d7793ec491cb595b7a32e508 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Tue, 19 Apr 2022 09:25:48 +0200 Subject: [PATCH 42/46] Fix test names that are incorrect and/or awkward to read --- .../Xml/XDocumentAssertionSpecs.cs | 27 +++++++++++++++---- .../Xml/XElementAssertionSpecs.cs | 23 +++++++++++++--- 2 files changed, 42 insertions(+), 8 deletions(-) diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index 2de6972558..237832c785 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1177,7 +1177,7 @@ public void When_asserting_document_has_two_child_elements_and_it_does_it_succee } [Fact] - public void Asserting_document_inside_an_assertion_scope_it_checks_the_whole_assertion_scope_before_failing() + public void Asserting_document_null_inside_an_assertion_scope_it_checks_the_whole_assertion_scope_before_failing() { // Arrange XDocument document = null; @@ -1197,7 +1197,7 @@ public void Asserting_document_inside_an_assertion_scope_it_checks_the_whole_ass } [Fact] - public void Asserting_document_inside_an_assertion_scope_it_checks_the_whole_assertion_scope_before_failing_() + public void Asserting_with_document_root_null_inside_an_assertion_scope_it_checks_the_whole_assertion_scope_before_failing() { // Arrange XDocument document = new(); @@ -1274,7 +1274,7 @@ public void Document_is_valid_and_expected_null_with_x_name_overload_it_fails() } [Fact] - public void Chaining_which_after_asserting_and_the_document_has_more_than_two_child_elements_it_fails() + public void Chaining_after_a_successful_occurrence_check_does_continue_the_assertion() { // Arrange var document = XDocument.Parse( @@ -1284,12 +1284,29 @@ public void Chaining_which_after_asserting_and_the_document_has_more_than_two_ch "); + // Act / Assert + document.Should().HaveElement("child", AtLeast.Twice()) + .Which.Should().NotBeNull(); + } + + [Fact] + public void Chaining_after_a_non_successful_occurrence_check_does_not_continue_the_assertion() + { + // Arrange + var document = XDocument.Parse( + @" + + + + "); + // Act - Action act = () => document.Should().HaveElement("child", AtLeast.Twice()) + Action act = () => document.Should().HaveElement("child", Exactly.Once()) .Which.Should().NotBeNull(); // Assert - act.Should().NotThrow(); + act.Should().Throw() + .WithMessage("Expected document to have *exactly*1 child element(s) \"child\", but found 3."); } [Fact] diff --git a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs index 17fe547f32..04ee5c7a3c 100644 --- a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs @@ -1324,7 +1324,23 @@ public void Element_is_valid_and_expected_null_with_x_name_overload_it_fails() } [Fact] - public void Chaining_which_after_asserting_and_the_element_has_more_than_two_child_elements_it_fails() + public void Chaining_after_a_successful_occurrence_check_does_continue_the_assertion() + { + // Arrange + var element = XElement.Parse( + @" + + + + "); + + // Act / Assert + element.Should().HaveElement("child", AtLeast.Twice()) + .Which.Should().NotBeNull(); + } + + [Fact] + public void Chaining_after_a_non_successful_occurrence_check_does_not_continue_the_assertion() { // Arrange var element = XElement.Parse( @@ -1335,11 +1351,12 @@ public void Chaining_which_after_asserting_and_the_element_has_more_than_two_chi "); // Act - Action act = () => element.Should().HaveElement("child", AtLeast.Twice()) + Action act = () => element.Should().HaveElement("child", Exactly.Once()) .Which.Should().NotBeNull(); // Assert - act.Should().NotThrow(); + act.Should().Throw() + .WithMessage("Expected element to have *exactly*1 child element(s) \"child\", but found 3."); } [Fact] From 79387bab3ff808c4b4337d31064fd8b38fae609a Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 20 Apr 2022 07:40:49 +0200 Subject: [PATCH 43/46] Some minor optimizations --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index ef6aceac3a..b58ca5e54d 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -298,8 +298,9 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected if (success) { + var root = Subject.Root; success = Execute.Assertion - .ForCondition(Subject.Root is not null) + .ForCondition(root is not null) .BecauseOf(because, becauseArgs) .FailWith( "Expected {context:subject} to have root element with child {0}{reason}, but it has no root element.", @@ -307,7 +308,7 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected if (success) { - xElements = Subject.Root.Elements(expected); + xElements = root.Elements(expected); int actualCount = xElements.Count(); Execute.Assertion From 8a8f930082d7d3fe4f933ee15b7eb7b46ea16e0b Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Wed, 20 Apr 2022 07:44:01 +0200 Subject: [PATCH 44/46] Take care of some code style practices --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index b58ca5e54d..35ebaa3fad 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -300,11 +300,11 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected { var root = Subject.Root; success = Execute.Assertion - .ForCondition(root is not null) - .BecauseOf(because, becauseArgs) - .FailWith( - "Expected {context:subject} to have root element with child {0}{reason}, but it has no root element.", - expected.ToString()); + .ForCondition(root is not null) + .BecauseOf(because, becauseArgs) + .FailWith( + "Expected {context:subject} to have root element with child {0}{reason}, but it has no root element.", + expected.ToString()); if (success) { @@ -315,7 +315,8 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected .ForConstraint(occurrenceConstraint, actualCount) .BecauseOf(because, becauseArgs) .FailWith( - $"Expected {{context:subject}} to have {occurrenceConstraint.Mode} {{0}} child element(s) {{1}}{{reason}}, but found {{2}}.", + $"Expected {{context:subject}} to have {occurrenceConstraint.Mode} {{0}} " + + $"child element(s) {{1}}{{reason}}, but found {{2}}.", occurrenceConstraint.ExpectedCount, expected.ToString(), actualCount); From 4a6f8898913239cb5fc5901c520c92f1cfb8ec58 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Fri, 22 Apr 2022 06:14:00 +0200 Subject: [PATCH 45/46] Rework the failure message to use the registered reportable --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 14 ++++++-------- Src/FluentAssertions/Xml/XElementAssertions.cs | 11 +++++------ .../Xml/XDocumentAssertionSpecs.cs | 8 ++++---- .../Xml/XElementAssertionSpecs.cs | 8 ++++---- 4 files changed, 19 insertions(+), 22 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index 35ebaa3fad..b2305d4831 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -303,23 +303,21 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected .ForCondition(root is not null) .BecauseOf(because, becauseArgs) .FailWith( - "Expected {context:subject} to have root element with child {0}{reason}, but it has no root element.", + "Expected {context:subject} to have root element containing a child {0}{reason}, but it has no root element.", expected.ToString()); if (success) { xElements = root.Elements(expected); - int actualCount = xElements.Count(); + int actual = xElements.Count(); Execute.Assertion - .ForConstraint(occurrenceConstraint, actualCount) + .ForConstraint(occurrenceConstraint, actual) .BecauseOf(because, becauseArgs) .FailWith( - $"Expected {{context:subject}} to have {occurrenceConstraint.Mode} {{0}} " + - $"child element(s) {{1}}{{reason}}, but found {{2}}.", - occurrenceConstraint.ExpectedCount, - expected.ToString(), - actualCount); + $"Expected {{context:subject}} to have a root element containing a child {{0}} " + + $"{{expectedOccurrence}}{{reason}}, but found it {actual.Times()}.", + expected.ToString()); } } diff --git a/Src/FluentAssertions/Xml/XElementAssertions.cs b/Src/FluentAssertions/Xml/XElementAssertions.cs index 380714f0dd..d245084e88 100644 --- a/Src/FluentAssertions/Xml/XElementAssertions.cs +++ b/Src/FluentAssertions/Xml/XElementAssertions.cs @@ -326,16 +326,15 @@ public AndConstraint HaveValue(string expected, string becau if (success) { xElements = Subject.Elements(expected); - int actualCount = xElements.Count(); + int actual = xElements.Count(); Execute.Assertion - .ForConstraint(occurrenceConstraint, actualCount) + .ForConstraint(occurrenceConstraint, actual) .BecauseOf(because, becauseArgs) .FailWith( - $"Expected {{context:subject}} to have {occurrenceConstraint.Mode} {{0}} child element(s) {{1}}{{reason}}, but found {{2}}.", - occurrenceConstraint.ExpectedCount, - expected.ToString(), - actualCount); + $"Expected {{context:subject}} to have an element {{0}} {{expectedOccurrence}}" + + $"{{reason}}, but found it {actual.Times()}.", + expected.ToString()); } return new AndWhichConstraint>(this, xElements); diff --git a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs index 237832c785..837a6b0422 100644 --- a/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XDocumentAssertionSpecs.cs @@ -1231,8 +1231,8 @@ public void When_asserting_document_has_two_child_elements_but_it_does_have_thre Action act = () => document.Should().HaveElement("child", Exactly.Twice()); // Assert - act.Should().Throw().WithMessage( - "Expected document to have *exactly* 2 child element(s) \"child\", but found 3."); + act.Should().Throw() + .WithMessage("Expected document to have a root element containing a child \"child\"*exactly*2 times, but found it 3 times*"); } [Fact] @@ -1247,7 +1247,7 @@ public void Document_is_valid_and_expected_null_with_string_overload_it_fails() "); // Act - Action act = () => document.Should().HaveElement((string)null, Exactly.Twice()); + Action act = () => document.Should().HaveElement(null, Exactly.Twice()); // Assert act.Should().Throw().WithMessage( @@ -1306,7 +1306,7 @@ public void Chaining_after_a_non_successful_occurrence_check_does_not_continue_t // Assert act.Should().Throw() - .WithMessage("Expected document to have *exactly*1 child element(s) \"child\", but found 3."); + .WithMessage("Expected document to have a root element containing a child \"child\"*exactly*1 time, but found it 3 times."); } [Fact] diff --git a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs index 04ee5c7a3c..176bd01d27 100644 --- a/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Xml/XElementAssertionSpecs.cs @@ -1281,8 +1281,8 @@ public void Element_has_two_child_elements_and_three_expected_it_fails() Action act = () => element.Should().HaveElement("child", Exactly.Twice()); // Assert - act.Should().Throw().WithMessage( - "Expected element to have *exactly*2 child element(s) \"child\", but found 3."); + act.Should().Throw() + .WithMessage("Expected element to have an element \"child\"*exactly*2 times, but found it 3 times."); } [Fact] @@ -1297,7 +1297,7 @@ public void Element_is_valid_and_expected_null_with_string_overload_it_fails() "); // Act - Action act = () => element.Should().HaveElement((string)null, Exactly.Twice()); + Action act = () => element.Should().HaveElement(null, Exactly.Twice()); // Assert act.Should().Throw().WithMessage( @@ -1356,7 +1356,7 @@ public void Chaining_after_a_non_successful_occurrence_check_does_not_continue_t // Assert act.Should().Throw() - .WithMessage("Expected element to have *exactly*1 child element(s) \"child\", but found 3."); + .WithMessage("Expected element to have an element \"child\"*exactly*1 time, but found it 3 times."); } [Fact] From 55063f1a7c9cc5b812b363c1832b431c3f84c797 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Fri, 22 Apr 2022 06:14:28 +0200 Subject: [PATCH 46/46] Fix xml documentation --- Src/FluentAssertions/Xml/XDocumentAssertions.cs | 4 ++-- Src/FluentAssertions/Xml/XElementAssertions.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/FluentAssertions/Xml/XDocumentAssertions.cs b/Src/FluentAssertions/Xml/XDocumentAssertions.cs index b2305d4831..668e5cebfb 100644 --- a/Src/FluentAssertions/Xml/XDocumentAssertions.cs +++ b/Src/FluentAssertions/Xml/XDocumentAssertions.cs @@ -197,8 +197,8 @@ public AndConstraint NotBeEquivalentTo(XDocument unexpected } /// - /// Asserts that the element of the current has a direct - /// child element with the specified name. + /// Asserts that the element of the current has the specified occurrence of + /// child elements with the specified name. /// /// /// The name of the expected child element of the current document's element. diff --git a/Src/FluentAssertions/Xml/XElementAssertions.cs b/Src/FluentAssertions/Xml/XElementAssertions.cs index d245084e88..4e9b6e2876 100644 --- a/Src/FluentAssertions/Xml/XElementAssertions.cs +++ b/Src/FluentAssertions/Xml/XElementAssertions.cs @@ -341,8 +341,8 @@ public AndConstraint HaveValue(string expected, string becau } /// - /// Asserts that the of the current has a direct - /// child element with the specified name. + /// Asserts that the of the current has the specified occurrence of + /// child elements with the specified name. /// /// /// The name of the expected child element of the current element's .