Skip to content

Commit

Permalink
Removed all support for DataSet, DataTable, DataRow and such (#2267)
Browse files Browse the repository at this point in the history
This was moved to a new repository and package
  • Loading branch information
dennisdoomen committed Aug 27, 2023
1 parent bc49f11 commit 0f2a1cb
Show file tree
Hide file tree
Showing 49 changed files with 14 additions and 12,203 deletions.
42 changes: 0 additions & 42 deletions Src/FluentAssertions/AssertionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
Expand All @@ -12,7 +11,6 @@
using System.Xml.Linq;
using FluentAssertions.Collections;
using FluentAssertions.Common;
using FluentAssertions.Data;
using FluentAssertions.Numeric;
using FluentAssertions.Primitives;
using FluentAssertions.Reflection;
Expand Down Expand Up @@ -388,46 +386,6 @@ public static StringCollectionAssertions Should(this IEnumerable<string> @this)
return new GenericDictionaryAssertions<TCollection, TKey, TValue>(actualValue);
}

/// <summary>
/// Returns an assertions object that provides methods for asserting the state of a <see cref="DataTableCollection"/>.
/// </summary>
[Pure]
public static GenericCollectionAssertions<DataTable> Should(this DataTableCollection actualValue)
{
return new GenericCollectionAssertions<DataTable>(
ReadOnlyNonGenericCollectionWrapper.Create(actualValue));
}

/// <summary>
/// Returns an assertions object that provides methods for asserting the state of a <see cref="DataColumnCollection"/>.
/// </summary>
[Pure]
public static GenericCollectionAssertions<DataColumn> Should(this DataColumnCollection actualValue)
{
return new GenericCollectionAssertions<DataColumn>(
ReadOnlyNonGenericCollectionWrapper.Create(actualValue));
}

/// <summary>
/// Returns an assertions object that provides methods for asserting the state of a <see cref="DataRowCollection"/>.
/// </summary>
[Pure]
public static GenericCollectionAssertions<DataRow> Should(this DataRowCollection actualValue)
{
return new GenericCollectionAssertions<DataRow>(
ReadOnlyNonGenericCollectionWrapper.Create(actualValue));
}

/// <summary>
/// Returns a <see cref="DataColumnAssertions"/> object that can be used to assert the
/// current <see cref="DataColumn"/>.
/// </summary>
[Pure]
public static DataColumnAssertions Should(this DataColumn actualValue)
{
return new DataColumnAssertions(actualValue);
}

/// <summary>
/// Returns an <see cref="DateTimeAssertions"/> object that can be used to assert the
/// current <see cref="DateTime"/>.
Expand Down
11 changes: 3 additions & 8 deletions Src/FluentAssertions/AssertionOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,14 @@ static AssertionOptions()
EquivalencyPlan = new EquivalencyPlan();
}

/// <summary>
/// Creates a clone of the default options and allows the caller to modify them.
/// </summary>
public static EquivalencyAssertionOptions<T> CloneDefaults<T>()
{
return new EquivalencyAssertionOptions<T>(defaults);
}

internal static TOptions CloneDefaults<T, TOptions>(Func<EquivalencyAssertionOptions, TOptions> predicate)
where TOptions : EquivalencyAssertionOptions<T>
{
Guard.ThrowIfArgumentIsNull(predicate);

return predicate(defaults);
}

/// <summary>
/// Allows configuring the defaults used during a structural equivalency assertion.
/// </summary>
Expand Down
69 changes: 0 additions & 69 deletions Src/FluentAssertions/Common/ReadOnlyNonGenericCollectionWrapper.cs

This file was deleted.

146 changes: 0 additions & 146 deletions Src/FluentAssertions/Data/DataColumnAssertions.cs

This file was deleted.

0 comments on commit 0f2a1cb

Please sign in to comment.