From a1a4bc927fdf2a3088db038989c71e92cc656fee Mon Sep 17 00:00:00 2001 From: Paul Martins Date: Sun, 26 Oct 2025 16:14:45 +0000 Subject: [PATCH 1/9] Added SequenceEqualityComparerGenerator and HashCodeGenerator to mimic the equality behavior supported by Valuify (#19). Added Console and Console.Tests to support tests on generated code (rather than just tests for generated code). --- .editorconfig | 31 ++++--- AGENTS.md | 1 + Monify.sln | 12 +++ .../Monify.Console.Tests.csproj | 16 ++++ src/Monify.Console/Monify.Console.csproj | 16 ++++ src/Monify.Console/Program.cs | 17 ++++ src/Monify.Tests/GeneratorTest.cs | 12 +-- .../HashCodeGeneratorTests/WhenExecuted.cs | 24 ++++++ .../WhenExecuted.cs | 31 +++++++ .../Classes/Nested.InClass.Expected.cs | 2 +- .../Classes/Nested.InInterface.Expected.cs | 2 +- .../Classes/Nested.InRecord.Expected.cs | 2 +- .../Classes/Nested.InRecordStruct.Expected.cs | 2 +- .../Classes/Nested.InStruct.Expected.cs | 2 +- .../Declarations/Classes/Simple.Expected.cs | 2 +- .../Snippets/Declarations/Internal.cs | 16 ++++ .../Records/Nested.InClass.Expected.cs | 2 +- .../Records/Nested.InInterface.Expected.cs | 2 +- .../Records/Nested.InRecord.Expected.cs | 2 +- .../Records/Nested.InRecordStruct.Expected.cs | 2 +- .../Records/Nested.InStruct.Expected.cs | 2 +- .../Structs/Nested.InClass.Expected.cs | 2 +- .../Structs/Nested.InInterface.Expected.cs | 2 +- .../Structs/Nested.InRecord.Expected.cs | 2 +- .../Structs/Nested.InRecordStruct.Expected.cs | 2 +- .../Structs/Nested.InStruct.Expected.cs | 2 +- .../Declarations/Structs/Simple.Expected.cs | 2 +- .../TypeGeneratorTests/WhenExecuted.cs | 8 +- src/Monify/HashCodeGenerator.cs | 80 +++++++++++++++++++ .../SequenceEqualityComparerGenerator.cs | 71 ++++++++++++++++ src/Monify/Strategies/GetHashCodeStrategy.cs | 2 +- 31 files changed, 333 insertions(+), 38 deletions(-) create mode 100644 src/Monify.Console.Tests/Monify.Console.Tests.csproj create mode 100644 src/Monify.Console/Monify.Console.csproj create mode 100644 src/Monify.Console/Program.cs create mode 100644 src/Monify.Tests/HashCodeGeneratorTests/WhenExecuted.cs create mode 100644 src/Monify.Tests/SequenceEqualityComparerGeneratorTests/WhenExecuted.cs create mode 100644 src/Monify.Tests/Snippets/Declarations/Internal.cs create mode 100644 src/Monify/HashCodeGenerator.cs create mode 100644 src/Monify/SequenceEqualityComparerGenerator.cs diff --git a/.editorconfig b/.editorconfig index 6000037..bfb9123 100644 --- a/.editorconfig +++ b/.editorconfig @@ -175,13 +175,15 @@ dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = error dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case -dotnet_naming_rule.private_constant_should_be_pascal_case.severity = error -dotnet_naming_rule.private_constant_should_be_pascal_case.symbols = private_constant -dotnet_naming_rule.private_constant_should_be_pascal_case.style = pascal_case +dotnet_naming_rule.private_constant_fields_should_be_pascal_case.severity = error +dotnet_naming_rule.private_constant_fields_should_be_pascal_case.symbols = private_constant_fields +dotnet_naming_rule.private_constant_fields_should_be_pascal_case.style = pascal_case +dotnet_naming_rule.private_constant_fields_should_be_pascal_case.priority = 1 -dotnet_naming_rule.private_static_field_should_be_camel_case.severity = error -dotnet_naming_rule.private_static_field_should_be_camel_case.symbols = private_static_field -dotnet_naming_rule.private_static_field_should_be_camel_case.style = camel_case +dotnet_naming_rule.private_fields_should_be_camel_case_with_underscore_prefix.severity = error +dotnet_naming_rule.private_fields_should_be_camel_case_with_underscore_prefix.symbols = private_fields +dotnet_naming_rule.private_fields_should_be_camel_case_with_underscore_prefix.style = camel_case_underscore_prefix +dotnet_naming_rule.private_fields_should_be_camel_case_with_underscore_prefix.priority = 2 # Symbol specifications @@ -197,13 +199,13 @@ dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, meth dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal dotnet_naming_symbols.non_field_members.required_modifiers = -dotnet_naming_symbols.private_static_field.applicable_kinds = field -dotnet_naming_symbols.private_static_field.applicable_accessibilities = private -dotnet_naming_symbols.private_static_field.required_modifiers = static +dotnet_naming_symbols.private_fields.applicable_kinds = field +dotnet_naming_symbols.private_fields.applicable_accessibilities = private +dotnet_naming_symbols.private_fields.required_modifiers = -dotnet_naming_symbols.private_constant.applicable_kinds = field -dotnet_naming_symbols.private_constant.applicable_accessibilities = private -dotnet_naming_symbols.private_constant.required_modifiers = const +dotnet_naming_symbols.private_constant_fields.applicable_kinds = field +dotnet_naming_symbols.private_constant_fields.applicable_accessibilities = private +dotnet_naming_symbols.private_constant_fields.required_modifiers = const # Naming styles @@ -221,6 +223,11 @@ dotnet_naming_style.camel_case.required_prefix = dotnet_naming_style.camel_case.required_suffix = dotnet_naming_style.camel_case.word_separator = dotnet_naming_style.camel_case.capitalization = camel_case + +dotnet_naming_style.camel_case_underscore_prefix.required_prefix = _ +dotnet_naming_style.camel_case_underscore_prefix.required_suffix = +dotnet_naming_style.camel_case_underscore_prefix.word_separator = +dotnet_naming_style.camel_case_underscore_prefix.capitalization = camel_case dotnet_diagnostic.S1117.severity = none dotnet_diagnostic.SA1506.severity=silent dotnet_diagnostic.SA1500.severity=error diff --git a/AGENTS.md b/AGENTS.md index 2e4f66b..5522087 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -30,6 +30,7 @@ The project enforces strong C# coding conventions through `.editorconfig`, [Styl - Use `var` for local variables when the type is clear from the right-hand side. - Use `nameof` for member names in exceptions and logging. - Use `string.Empty` instead of `""` for empty strings. +- When possible, place declarations in alphabetical order (e.g. fields, parameters, properties, methods). ### Unit Testing Conventions diff --git a/Monify.sln b/Monify.sln index 382f4ac..b593a2f 100644 --- a/Monify.sln +++ b/Monify.sln @@ -65,6 +65,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Rules", "Rules", "{DF5E2435 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Monify.Tests", "src\Monify.Tests\Monify.Tests.csproj", "{9C2086AB-647E-485E-A964-A4A383354230}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Monify.Console", "src\Monify.Console\Monify.Console.csproj", "{8EC2148F-0491-4116-AC04-C4A0AD013C82}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Monify.Console.Tests", "src\Monify.Console.Tests\Monify.Console.Tests.csproj", "{5EE36FF0-4AA4-4EB1-A6C9-9FE144B1D4FB}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -79,6 +83,14 @@ Global {9C2086AB-647E-485E-A964-A4A383354230}.Debug|Any CPU.Build.0 = Debug|Any CPU {9C2086AB-647E-485E-A964-A4A383354230}.Release|Any CPU.ActiveCfg = Release|Any CPU {9C2086AB-647E-485E-A964-A4A383354230}.Release|Any CPU.Build.0 = Release|Any CPU + {8EC2148F-0491-4116-AC04-C4A0AD013C82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8EC2148F-0491-4116-AC04-C4A0AD013C82}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8EC2148F-0491-4116-AC04-C4A0AD013C82}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8EC2148F-0491-4116-AC04-C4A0AD013C82}.Release|Any CPU.Build.0 = Release|Any CPU + {5EE36FF0-4AA4-4EB1-A6C9-9FE144B1D4FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5EE36FF0-4AA4-4EB1-A6C9-9FE144B1D4FB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5EE36FF0-4AA4-4EB1-A6C9-9FE144B1D4FB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5EE36FF0-4AA4-4EB1-A6C9-9FE144B1D4FB}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Monify.Console.Tests/Monify.Console.Tests.csproj b/src/Monify.Console.Tests/Monify.Console.Tests.csproj new file mode 100644 index 0000000..c698432 --- /dev/null +++ b/src/Monify.Console.Tests/Monify.Console.Tests.csproj @@ -0,0 +1,16 @@ + + + + all + runtime; build; native; contentfiles; analyzers + + + all + runtime; build; native; contentfiles; analyzers + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + \ No newline at end of file diff --git a/src/Monify.Console/Monify.Console.csproj b/src/Monify.Console/Monify.Console.csproj new file mode 100644 index 0000000..9ef27a1 --- /dev/null +++ b/src/Monify.Console/Monify.Console.csproj @@ -0,0 +1,16 @@ + + + false + Exe + net9.0 + + + + + + + all + runtime; build; native; contentfiles; analyzers + + + \ No newline at end of file diff --git a/src/Monify.Console/Program.cs b/src/Monify.Console/Program.cs new file mode 100644 index 0000000..044ef8f --- /dev/null +++ b/src/Monify.Console/Program.cs @@ -0,0 +1,17 @@ +namespace Monify.Console; + +using static System.Console; + +/// +/// Entry point for the application, which is used to facilitate debugging of the Monify project. +/// +internal static class Program +{ + /// + /// Entry point for the application, which is used to facilitate debugging of the Monify project. + /// + public static void Main() + { + WriteLine("Test Application for Monify"); + } +} \ No newline at end of file diff --git a/src/Monify.Tests/GeneratorTest.cs b/src/Monify.Tests/GeneratorTest.cs index 81e4adf..6de0753 100644 --- a/src/Monify.Tests/GeneratorTest.cs +++ b/src/Monify.Tests/GeneratorTest.cs @@ -9,26 +9,26 @@ public sealed class GeneratorTest : CSharpSourceGeneratorTest where TGenerator : new() { - private readonly Type[] generators; - private readonly LanguageVersion language; + private readonly Type[] _generators; + private readonly LanguageVersion _language; public GeneratorTest(ReferenceAssemblies assembly, LanguageVersion language, params Type[] generators) { - this.generators = generators.Length == 0 + _generators = generators.Length == 0 ? [typeof(TGenerator)] : generators; - this.language = language; + _language = language; ReferenceAssemblies = assembly; } protected sealed override ParseOptions CreateParseOptions() { - return new CSharpParseOptions(language); + return new CSharpParseOptions(_language); } protected sealed override IEnumerable GetSourceGenerators() { - return generators; + return _generators; } } \ No newline at end of file diff --git a/src/Monify.Tests/HashCodeGeneratorTests/WhenExecuted.cs b/src/Monify.Tests/HashCodeGeneratorTests/WhenExecuted.cs new file mode 100644 index 0000000..6ce4f47 --- /dev/null +++ b/src/Monify.Tests/HashCodeGeneratorTests/WhenExecuted.cs @@ -0,0 +1,24 @@ +namespace Monify.HashCodeGeneratorTests; + +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.Testing; +using Monify.Snippets.Declarations; + +public sealed class WhenExecuted +{ + [Theory] + [Frameworks] + public async Task GivenAnAssemblyThenTheClassIsGenerated(ReferenceAssemblies assemblies, LanguageVersion language) + { + // Arrange + var test = new GeneratorTest(assemblies, language); + + Internal.HashCode.IsExpectedIn(test.TestState); + + // Act + Func act = () => test.RunAsync(); + + // Assert + await act.ShouldNotThrowAsync(); + } +} \ No newline at end of file diff --git a/src/Monify.Tests/SequenceEqualityComparerGeneratorTests/WhenExecuted.cs b/src/Monify.Tests/SequenceEqualityComparerGeneratorTests/WhenExecuted.cs new file mode 100644 index 0000000..8ef507f --- /dev/null +++ b/src/Monify.Tests/SequenceEqualityComparerGeneratorTests/WhenExecuted.cs @@ -0,0 +1,31 @@ +namespace Monify.SequenceEqualityComparerGeneratorTests; + +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.Testing; +using Monify.Snippets.Declarations; + +public sealed class WhenExecuted +{ + private static readonly Type[] _generators = + [ + typeof(HashCodeGenerator), + typeof(SequenceEqualityComparerGenerator), + ]; + + [Theory] + [Frameworks] + public async Task GivenAnAssemblyThenTheClassIsGenerated(ReferenceAssemblies assemblies, LanguageVersion language) + { + // Arrange + var test = new GeneratorTest(assemblies, language, generators: _generators); + + Internal.HashCode.IsExpectedIn(test.TestState); + Internal.SequenceEqualityComparer.IsExpectedIn(test.TestState); + + // Act + Func act = () => test.RunAsync(); + + // Assert + await act.ShouldNotThrowAsync(); + } +} \ No newline at end of file diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InClass.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InClass.Expected.cs index 07de484..b609758 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InClass.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InClass.Expected.cs @@ -307,7 +307,7 @@ sealed partial class Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InInterface.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InInterface.Expected.cs index 70ad150..edde3ec 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InInterface.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InInterface.Expected.cs @@ -307,7 +307,7 @@ sealed partial class Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecord.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecord.Expected.cs index a2be0c9..b04355f 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecord.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecord.Expected.cs @@ -307,7 +307,7 @@ sealed partial class Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecordStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecordStruct.Expected.cs index ceee215..bc569de 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecordStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecordStruct.Expected.cs @@ -307,7 +307,7 @@ sealed partial class Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InStruct.Expected.cs index 016e6f8..f26e832 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InStruct.Expected.cs @@ -307,7 +307,7 @@ sealed partial class Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Simple.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Simple.Expected.cs index 4f4a074..28f9012 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Simple.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Simple.Expected.cs @@ -276,7 +276,7 @@ sealed partial class Simple { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } diff --git a/src/Monify.Tests/Snippets/Declarations/Internal.cs b/src/Monify.Tests/Snippets/Declarations/Internal.cs new file mode 100644 index 0000000..fddd13e --- /dev/null +++ b/src/Monify.Tests/Snippets/Declarations/Internal.cs @@ -0,0 +1,16 @@ +namespace Monify.Snippets.Declarations; + +public static class Internal +{ + public static readonly Generated HashCode = new( + HashCodeGenerator.Content, + Extensions.None, + "Monify.Internal.HashCode", + Generator: typeof(HashCodeGenerator)); + + public static readonly Generated SequenceEqualityComparer = new( + SequenceEqualityComparerGenerator.Content, + Extensions.None, + "Monify.Internal.SequenceEqualityComparer", + Generator: typeof(SequenceEqualityComparerGenerator)); +} \ No newline at end of file diff --git a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InClass.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InClass.Expected.cs index 022426a..0be192b 100644 --- a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InClass.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InClass.Expected.cs @@ -307,7 +307,7 @@ sealed partial record Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InInterface.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InInterface.Expected.cs index 0f48a8d..809a49e 100644 --- a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InInterface.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InInterface.Expected.cs @@ -307,7 +307,7 @@ sealed partial record Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecord.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecord.Expected.cs index f1144f7..b2fded0 100644 --- a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecord.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecord.Expected.cs @@ -307,7 +307,7 @@ sealed partial record Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecordStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecordStruct.Expected.cs index d6660b2..cc486d7 100644 --- a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecordStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecordStruct.Expected.cs @@ -307,7 +307,7 @@ sealed partial record Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InStruct.Expected.cs index 1319a21..90be44f 100644 --- a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InStruct.Expected.cs @@ -307,7 +307,7 @@ sealed partial record Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InClass.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InClass.Expected.cs index 1bf0f5b..7bb90ca 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InClass.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InClass.Expected.cs @@ -307,7 +307,7 @@ readonly partial struct Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InInterface.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InInterface.Expected.cs index 3bcaaf3..0ac032d 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InInterface.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InInterface.Expected.cs @@ -307,7 +307,7 @@ readonly partial struct Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecord.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecord.Expected.cs index eb90491..a54a962 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecord.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecord.Expected.cs @@ -307,7 +307,7 @@ readonly partial struct Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecordStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecordStruct.Expected.cs index b9caf75..a01fafd 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecordStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecordStruct.Expected.cs @@ -307,7 +307,7 @@ readonly partial struct Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InStruct.Expected.cs index 05b396e..a0fe201 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InStruct.Expected.cs @@ -307,7 +307,7 @@ readonly partial struct Inner { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Simple.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Simple.Expected.cs index 9893c43..f165a45 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Simple.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Simple.Expected.cs @@ -276,7 +276,7 @@ partial struct Simple { public override int GetHashCode() { - return _value.GetHashCode(); + return global::Monify.Internal.HashCode.Combine(_value); } } diff --git a/src/Monify.Tests/TypeGeneratorTests/WhenExecuted.cs b/src/Monify.Tests/TypeGeneratorTests/WhenExecuted.cs index 51f7d6e..46053f6 100644 --- a/src/Monify.Tests/TypeGeneratorTests/WhenExecuted.cs +++ b/src/Monify.Tests/TypeGeneratorTests/WhenExecuted.cs @@ -7,9 +7,11 @@ public sealed class WhenExecuted { - private static readonly Type[] generators = + private static readonly Type[] _generators = [ typeof(AttributeGenerator), + typeof(HashCodeGenerator), + typeof(SequenceEqualityComparerGenerator), typeof(TypeGenerator), ]; @@ -18,10 +20,12 @@ public sealed class WhenExecuted public async Task GivenATypeTheExpectedSourceIsGenerated(ReferenceAssemblies assembly, Expectations expectations, LanguageVersion language) { // Arrange - var test = new GeneratorTest(assembly, language, generators); + var test = new GeneratorTest(assembly, language, _generators); Attributes.IsExpectedIn(test.TestState, language); expectations.IsDeclaredIn(test.TestState); + Internal.HashCode.IsExpectedIn(test.TestState); + Internal.SequenceEqualityComparer.IsExpectedIn(test.TestState); // Act Func act = () => test.RunAsync(); diff --git a/src/Monify/HashCodeGenerator.cs b/src/Monify/HashCodeGenerator.cs new file mode 100644 index 0000000..5a17af4 --- /dev/null +++ b/src/Monify/HashCodeGenerator.cs @@ -0,0 +1,80 @@ +namespace Monify; + +using Microsoft.CodeAnalysis; + +/// +/// Generates an internal HashCode static class that is used to support hash code generation. +/// +[Generator(LanguageNames.CSharp)] +public sealed class HashCodeGenerator + : IIncrementalGenerator +{ + /// + /// The source code that will be output by the generator. + /// + public const string Content = $$""" + namespace Monify.Internal + { + using System; + using System.Collections; + + internal static class HashCode + { + private const int HashSeed = 0x1505; + private const int HashPrime = -1521134295; + + public static int Combine(params object[] values) + { + int hash = HashSeed; + + foreach (object value in values) + { + if (value is IEnumerable && !(value is string)) + { + IEnumerable enumerable = (IEnumerable)value; + + foreach (object element in enumerable) + { + hash = PerformCombine(hash, element); + } + } + else + { + hash = PerformCombine(hash, value); + } + } + + return hash; + } + + private static int PerformCombine(int hash, object value) + { + int other = GetHashCode(value); + + unchecked + { + return (other * HashPrime) + hash; + } + } + + private static int GetHashCode(object value) + { + int code = 0; + + if (value != null) + { + code = value.GetHashCode(); + } + + return code; + } + } + } + """; + + /// + public void Initialize(IncrementalGeneratorInitializationContext context) + { + context.RegisterPostInitializationOutput(context => context.AddSource("Monify.Internal.HashCode.g.cs", Content)); + } +} \ No newline at end of file diff --git a/src/Monify/SequenceEqualityComparerGenerator.cs b/src/Monify/SequenceEqualityComparerGenerator.cs new file mode 100644 index 0000000..e4279dd --- /dev/null +++ b/src/Monify/SequenceEqualityComparerGenerator.cs @@ -0,0 +1,71 @@ +namespace Monify; + +using Microsoft.CodeAnalysis; + +/// +/// Generates an internal SequenceEqualityComparer static class that is used to support enumerable enumerable checks. +/// +[Generator(LanguageNames.CSharp)] +public sealed class SequenceEqualityComparerGenerator + : IIncrementalGenerator +{ + /// + /// The source code that will be output by the generator. + /// + public const string Content = $$""" + namespace Monify.Internal + { + using System; + using System.Collections; + + internal sealed class SequenceEqualityComparer + { + public static readonly SequenceEqualityComparer Default = new SequenceEqualityComparer(); + + public bool Equals(IEnumerable left, IEnumerable right) + { + if (ReferenceEquals(left, right)) + { + return true; + } + + if (ReferenceEquals(left, null) || ReferenceEquals(null, right)) + { + return false; + } + + return Equals(left.GetEnumerator(), right.GetEnumerator()); + } + + public int GetHashCode(IEnumerable enumerable) + { + return HashCode.Combine(enumerable); + } + + private static bool Equals(IEnumerator left, IEnumerator right) + { + while (left.MoveNext()) + { + if (!right.MoveNext()) + { + return false; + } + + if (!Equals(left.Current, right.Current)) + { + return false; + } + } + + return !right.MoveNext(); + } + } + } + """; + + /// + public void Initialize(IncrementalGeneratorInitializationContext context) + { + context.RegisterPostInitializationOutput(context => context.AddSource("Monify.Internal.SequenceEqualityComparer.g.cs", Content)); + } +} \ No newline at end of file diff --git a/src/Monify/Strategies/GetHashCodeStrategy.cs b/src/Monify/Strategies/GetHashCodeStrategy.cs index ad4b53e..2126114 100644 --- a/src/Monify/Strategies/GetHashCodeStrategy.cs +++ b/src/Monify/Strategies/GetHashCodeStrategy.cs @@ -21,7 +21,7 @@ public IEnumerable Generate(Subject subject) { public override int GetHashCode() { - return {{FieldStrategy.Name}}.GetHashCode(); + return global::Monify.Internal.HashCode.Combine({{FieldStrategy.Name}}); } } """; From c3c1e393e5769022c281d7c274a8c29beb17b3b3 Mon Sep 17 00:00:00 2001 From: Paul Martins <50200071+MooVC@users.noreply.github.com> Date: Sun, 26 Oct 2025 20:37:28 +0000 Subject: [PATCH 2/9] Mirror declaration snippets in console project (#20) * Mirror declaration snippets in console project * Corrected Simple class definitions - some minor whitespace cleanup * Supressed annoying warning * Addressed some warnings --- .../Classes/Nested/InClass/OutterForArray.{T}.cs | 8 ++++++++ .../Classes/Nested/InClass/OutterForInt.{T}.cs | 8 ++++++++ .../Classes/Nested/InClass/OutterForString.{T}.cs | 8 ++++++++ .../Classes/Nested/InInterface/IOutterForArray.{T}.cs | 8 ++++++++ .../Classes/Nested/InInterface/IOutterForInt.{T}.cs | 8 ++++++++ .../Classes/Nested/InInterface/IOutterForString.{T}.cs | 8 ++++++++ .../Classes/Nested/InRecord/OutterForArray.{T}.cs | 8 ++++++++ .../Classes/Nested/InRecord/OutterForInt.{T}.cs | 8 ++++++++ .../Classes/Nested/InRecord/OutterForString.{T}.cs | 8 ++++++++ .../Classes/Nested/InRecordStruct/OutterForArray.{T}.cs | 8 ++++++++ .../Classes/Nested/InRecordStruct/OutterForInt.{T}.cs | 8 ++++++++ .../Classes/Nested/InRecordStruct/OutterForString.{T}.cs | 8 ++++++++ .../Classes/Nested/InStruct/OutterForArray.{T}.cs | 8 ++++++++ .../Classes/Nested/InStruct/OutterForInt.{T}.cs | 8 ++++++++ .../Classes/Nested/InStruct/OutterForString.{T}.cs | 8 ++++++++ src/Monify.Console/Classes/Simple/SimpleForArray.cs | 4 ++++ src/Monify.Console/Classes/Simple/SimpleForInt.cs | 4 ++++ src/Monify.Console/Classes/Simple/SimpleForString.cs | 4 ++++ src/Monify.Console/Monify.Console.csproj | 1 + .../Records/Nested/InClass/OutterForArray.{T}.cs | 8 ++++++++ .../Records/Nested/InClass/OutterForInt.{T}.cs | 8 ++++++++ .../Records/Nested/InClass/OutterForString.{T}.cs | 8 ++++++++ .../Records/Nested/InInterface/IOutterForArray.{T}.cs | 8 ++++++++ .../Records/Nested/InInterface/IOutterForInt.{T}.cs | 8 ++++++++ .../Records/Nested/InInterface/IOutterForString.{T}.cs | 8 ++++++++ .../Records/Nested/InRecord/OutterForArray.{T}.cs | 8 ++++++++ .../Records/Nested/InRecord/OutterForInt.{T}.cs | 8 ++++++++ .../Records/Nested/InRecord/OutterForString.{T}.cs | 8 ++++++++ .../Records/Nested/InRecordStruct/OutterForArray.{T}.cs | 8 ++++++++ .../Records/Nested/InRecordStruct/OutterForInt.{T}.cs | 8 ++++++++ .../Records/Nested/InRecordStruct/OutterForString.{T}.cs | 8 ++++++++ .../Records/Nested/InStruct/OutterForArray.{T}.cs | 8 ++++++++ .../Records/Nested/InStruct/OutterForInt.{T}.cs | 8 ++++++++ .../Records/Nested/InStruct/OutterForString.{T}.cs | 8 ++++++++ src/Monify.Console/Records/Simple/SimpleForArray.cs | 4 ++++ src/Monify.Console/Records/Simple/SimpleForInt.cs | 4 ++++ src/Monify.Console/Records/Simple/SimpleForString.cs | 4 ++++ .../Structs/Nested/InClass/OutterForArray.{T}.cs | 8 ++++++++ .../Structs/Nested/InClass/OutterForInt.{T}.cs | 8 ++++++++ .../Structs/Nested/InClass/OutterForString.{T}.cs | 8 ++++++++ .../Structs/Nested/InInterface/IOutterForArray.{T}.cs | 8 ++++++++ .../Structs/Nested/InInterface/IOutterForInt.{T}.cs | 8 ++++++++ .../Structs/Nested/InInterface/IOutterForString.{T}.cs | 8 ++++++++ .../Structs/Nested/InRecord/OutterForArray.{T}.cs | 8 ++++++++ .../Structs/Nested/InRecord/OutterForInt.{T}.cs | 8 ++++++++ .../Structs/Nested/InRecord/OutterForString.{T}.cs | 8 ++++++++ .../Structs/Nested/InRecordStruct/OutterForArray.{T}.cs | 8 ++++++++ .../Structs/Nested/InRecordStruct/OutterForInt.{T}.cs | 8 ++++++++ .../Structs/Nested/InRecordStruct/OutterForString.{T}.cs | 8 ++++++++ .../Structs/Nested/InStruct/OutterForArray.{T}.cs | 8 ++++++++ .../Structs/Nested/InStruct/OutterForInt.{T}.cs | 8 ++++++++ .../Structs/Nested/InStruct/OutterForString.{T}.cs | 8 ++++++++ src/Monify.Console/Structs/Simple/SimpleForArray.cs | 4 ++++ src/Monify.Console/Structs/Simple/SimpleForInt.cs | 4 ++++ src/Monify.Console/Structs/Simple/SimpleForString.cs | 4 ++++ 55 files changed, 397 insertions(+) create mode 100644 src/Monify.Console/Classes/Nested/InClass/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InClass/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InClass/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InInterface/IOutterForArray.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InInterface/IOutterForInt.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InInterface/IOutterForString.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InRecord/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InRecord/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InRecord/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InRecordStruct/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InRecordStruct/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InRecordStruct/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InStruct/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InStruct/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InStruct/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Classes/Simple/SimpleForArray.cs create mode 100644 src/Monify.Console/Classes/Simple/SimpleForInt.cs create mode 100644 src/Monify.Console/Classes/Simple/SimpleForString.cs create mode 100644 src/Monify.Console/Records/Nested/InClass/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InClass/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InClass/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InInterface/IOutterForArray.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InInterface/IOutterForInt.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InInterface/IOutterForString.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InRecord/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InRecord/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InRecord/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InRecordStruct/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InRecordStruct/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InRecordStruct/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InStruct/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InStruct/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InStruct/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Records/Simple/SimpleForArray.cs create mode 100644 src/Monify.Console/Records/Simple/SimpleForInt.cs create mode 100644 src/Monify.Console/Records/Simple/SimpleForString.cs create mode 100644 src/Monify.Console/Structs/Nested/InClass/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InClass/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InClass/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InInterface/IOutterForArray.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InInterface/IOutterForInt.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InInterface/IOutterForString.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InRecord/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InRecord/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InRecord/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InRecordStruct/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InRecordStruct/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InRecordStruct/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InStruct/OutterForArray.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InStruct/OutterForInt.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InStruct/OutterForString.{T}.cs create mode 100644 src/Monify.Console/Structs/Simple/SimpleForArray.cs create mode 100644 src/Monify.Console/Structs/Simple/SimpleForInt.cs create mode 100644 src/Monify.Console/Structs/Simple/SimpleForString.cs diff --git a/src/Monify.Console/Classes/Nested/InClass/OutterForArray.{T}.cs b/src/Monify.Console/Classes/Nested/InClass/OutterForArray.{T}.cs new file mode 100644 index 0000000..b44d7ef --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InClass/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InClass; + +public sealed partial class OutterForArray + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InClass/OutterForInt.{T}.cs b/src/Monify.Console/Classes/Nested/InClass/OutterForInt.{T}.cs new file mode 100644 index 0000000..51ed580 --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InClass/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InClass; + +public sealed partial class OutterForInt + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InClass/OutterForString.{T}.cs b/src/Monify.Console/Classes/Nested/InClass/OutterForString.{T}.cs new file mode 100644 index 0000000..c911be4 --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InClass/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InClass; + +public sealed partial class OutterForString + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InInterface/IOutterForArray.{T}.cs b/src/Monify.Console/Classes/Nested/InInterface/IOutterForArray.{T}.cs new file mode 100644 index 0000000..1754bfe --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InInterface/IOutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InInterface; + +public partial interface IOutterForArray + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InInterface/IOutterForInt.{T}.cs b/src/Monify.Console/Classes/Nested/InInterface/IOutterForInt.{T}.cs new file mode 100644 index 0000000..6a3217e --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InInterface/IOutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InInterface; + +public partial interface IOutterForInt + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InInterface/IOutterForString.{T}.cs b/src/Monify.Console/Classes/Nested/InInterface/IOutterForString.{T}.cs new file mode 100644 index 0000000..4360f15 --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InInterface/IOutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InInterface; + +public partial interface IOutterForString + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecord/OutterForArray.{T}.cs b/src/Monify.Console/Classes/Nested/InRecord/OutterForArray.{T}.cs new file mode 100644 index 0000000..61703f8 --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InRecord/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InRecord; + +public sealed partial record OutterForArray + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecord/OutterForInt.{T}.cs b/src/Monify.Console/Classes/Nested/InRecord/OutterForInt.{T}.cs new file mode 100644 index 0000000..fe725a5 --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InRecord/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InRecord; + +public sealed partial record OutterForInt + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecord/OutterForString.{T}.cs b/src/Monify.Console/Classes/Nested/InRecord/OutterForString.{T}.cs new file mode 100644 index 0000000..71caed5 --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InRecord/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InRecord; + +public sealed partial record OutterForString + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForArray.{T}.cs b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForArray.{T}.cs new file mode 100644 index 0000000..e035c73 --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct; + +public readonly partial record struct OutterForArray + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForInt.{T}.cs b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForInt.{T}.cs new file mode 100644 index 0000000..bf2a7fd --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct; + +public readonly partial record struct OutterForInt + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForString.{T}.cs b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForString.{T}.cs new file mode 100644 index 0000000..ff31e3c --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct; + +public readonly partial record struct OutterForString + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InStruct/OutterForArray.{T}.cs b/src/Monify.Console/Classes/Nested/InStruct/OutterForArray.{T}.cs new file mode 100644 index 0000000..da8599d --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InStruct/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InStruct; + +public readonly ref partial struct OutterForArray + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InStruct/OutterForInt.{T}.cs b/src/Monify.Console/Classes/Nested/InStruct/OutterForInt.{T}.cs new file mode 100644 index 0000000..d8397dc --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InStruct/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InStruct; + +public readonly ref partial struct OutterForInt + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InStruct/OutterForString.{T}.cs b/src/Monify.Console/Classes/Nested/InStruct/OutterForString.{T}.cs new file mode 100644 index 0000000..ea40fe4 --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InStruct/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Classes.Nested.InStruct; + +public readonly ref partial struct OutterForString + where T : struct +{ + [Monify] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Simple/SimpleForArray.cs b/src/Monify.Console/Classes/Simple/SimpleForArray.cs new file mode 100644 index 0000000..5dc0634 --- /dev/null +++ b/src/Monify.Console/Classes/Simple/SimpleForArray.cs @@ -0,0 +1,4 @@ +namespace Monify.Console.Classes.Simple; + +[Monify] +public partial class SimpleForArray; \ No newline at end of file diff --git a/src/Monify.Console/Classes/Simple/SimpleForInt.cs b/src/Monify.Console/Classes/Simple/SimpleForInt.cs new file mode 100644 index 0000000..edd20d6 --- /dev/null +++ b/src/Monify.Console/Classes/Simple/SimpleForInt.cs @@ -0,0 +1,4 @@ +namespace Monify.Console.Classes.Simple; + +[Monify] +public partial class SimpleForInt; \ No newline at end of file diff --git a/src/Monify.Console/Classes/Simple/SimpleForString.cs b/src/Monify.Console/Classes/Simple/SimpleForString.cs new file mode 100644 index 0000000..b54320c --- /dev/null +++ b/src/Monify.Console/Classes/Simple/SimpleForString.cs @@ -0,0 +1,4 @@ +namespace Monify.Console.Classes.Simple; + +[Monify] +public partial class SimpleForString; \ No newline at end of file diff --git a/src/Monify.Console/Monify.Console.csproj b/src/Monify.Console/Monify.Console.csproj index 9ef27a1..304cb80 100644 --- a/src/Monify.Console/Monify.Console.csproj +++ b/src/Monify.Console/Monify.Console.csproj @@ -2,6 +2,7 @@ false Exe + S2326 net9.0 diff --git a/src/Monify.Console/Records/Nested/InClass/OutterForArray.{T}.cs b/src/Monify.Console/Records/Nested/InClass/OutterForArray.{T}.cs new file mode 100644 index 0000000..36b45ec --- /dev/null +++ b/src/Monify.Console/Records/Nested/InClass/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InClass; + +public sealed partial class OutterForArray + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InClass/OutterForInt.{T}.cs b/src/Monify.Console/Records/Nested/InClass/OutterForInt.{T}.cs new file mode 100644 index 0000000..dcbb8ea --- /dev/null +++ b/src/Monify.Console/Records/Nested/InClass/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InClass; + +public sealed partial class OutterForInt + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InClass/OutterForString.{T}.cs b/src/Monify.Console/Records/Nested/InClass/OutterForString.{T}.cs new file mode 100644 index 0000000..fa5946a --- /dev/null +++ b/src/Monify.Console/Records/Nested/InClass/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InClass; + +public sealed partial class OutterForString + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InInterface/IOutterForArray.{T}.cs b/src/Monify.Console/Records/Nested/InInterface/IOutterForArray.{T}.cs new file mode 100644 index 0000000..46fb985 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InInterface/IOutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InInterface; + +public partial interface IOutterForArray + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InInterface/IOutterForInt.{T}.cs b/src/Monify.Console/Records/Nested/InInterface/IOutterForInt.{T}.cs new file mode 100644 index 0000000..a32d3d8 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InInterface/IOutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InInterface; + +public partial interface IOutterForInt + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InInterface/IOutterForString.{T}.cs b/src/Monify.Console/Records/Nested/InInterface/IOutterForString.{T}.cs new file mode 100644 index 0000000..f95e8d5 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InInterface/IOutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InInterface; + +public partial interface IOutterForString + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InRecord/OutterForArray.{T}.cs b/src/Monify.Console/Records/Nested/InRecord/OutterForArray.{T}.cs new file mode 100644 index 0000000..eb4314c --- /dev/null +++ b/src/Monify.Console/Records/Nested/InRecord/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InRecord; + +public sealed partial record OutterForArray + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InRecord/OutterForInt.{T}.cs b/src/Monify.Console/Records/Nested/InRecord/OutterForInt.{T}.cs new file mode 100644 index 0000000..36f1586 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InRecord/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InRecord; + +public sealed partial record OutterForInt + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InRecord/OutterForString.{T}.cs b/src/Monify.Console/Records/Nested/InRecord/OutterForString.{T}.cs new file mode 100644 index 0000000..5060f6d --- /dev/null +++ b/src/Monify.Console/Records/Nested/InRecord/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InRecord; + +public sealed partial record OutterForString + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InRecordStruct/OutterForArray.{T}.cs b/src/Monify.Console/Records/Nested/InRecordStruct/OutterForArray.{T}.cs new file mode 100644 index 0000000..b78d294 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InRecordStruct/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InRecordStruct; + +public readonly partial record struct OutterForArray + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InRecordStruct/OutterForInt.{T}.cs b/src/Monify.Console/Records/Nested/InRecordStruct/OutterForInt.{T}.cs new file mode 100644 index 0000000..e96ea58 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InRecordStruct/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InRecordStruct; + +public readonly partial record struct OutterForInt + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InRecordStruct/OutterForString.{T}.cs b/src/Monify.Console/Records/Nested/InRecordStruct/OutterForString.{T}.cs new file mode 100644 index 0000000..5a240f2 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InRecordStruct/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InRecordStruct; + +public readonly partial record struct OutterForString + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InStruct/OutterForArray.{T}.cs b/src/Monify.Console/Records/Nested/InStruct/OutterForArray.{T}.cs new file mode 100644 index 0000000..33c93a1 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InStruct/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InStruct; + +public readonly ref partial struct OutterForArray + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InStruct/OutterForInt.{T}.cs b/src/Monify.Console/Records/Nested/InStruct/OutterForInt.{T}.cs new file mode 100644 index 0000000..03d60d7 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InStruct/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InStruct; + +public readonly ref partial struct OutterForInt + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InStruct/OutterForString.{T}.cs b/src/Monify.Console/Records/Nested/InStruct/OutterForString.{T}.cs new file mode 100644 index 0000000..0e33c75 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InStruct/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Records.Nested.InStruct; + +public readonly ref partial struct OutterForString + where T : struct +{ + [Monify] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Simple/SimpleForArray.cs b/src/Monify.Console/Records/Simple/SimpleForArray.cs new file mode 100644 index 0000000..9886895 --- /dev/null +++ b/src/Monify.Console/Records/Simple/SimpleForArray.cs @@ -0,0 +1,4 @@ +namespace Monify.Console.Records.Simple; + +[Monify] +public partial record SimpleForArray; \ No newline at end of file diff --git a/src/Monify.Console/Records/Simple/SimpleForInt.cs b/src/Monify.Console/Records/Simple/SimpleForInt.cs new file mode 100644 index 0000000..b6868f3 --- /dev/null +++ b/src/Monify.Console/Records/Simple/SimpleForInt.cs @@ -0,0 +1,4 @@ +namespace Monify.Console.Records.Simple; + +[Monify] +public partial record SimpleForInt; \ No newline at end of file diff --git a/src/Monify.Console/Records/Simple/SimpleForString.cs b/src/Monify.Console/Records/Simple/SimpleForString.cs new file mode 100644 index 0000000..8c5a074 --- /dev/null +++ b/src/Monify.Console/Records/Simple/SimpleForString.cs @@ -0,0 +1,4 @@ +namespace Monify.Console.Records.Simple; + +[Monify] +public partial record SimpleForString; \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InClass/OutterForArray.{T}.cs b/src/Monify.Console/Structs/Nested/InClass/OutterForArray.{T}.cs new file mode 100644 index 0000000..a2fa67a --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InClass/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InClass; + +public sealed partial class OutterForArray + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InClass/OutterForInt.{T}.cs b/src/Monify.Console/Structs/Nested/InClass/OutterForInt.{T}.cs new file mode 100644 index 0000000..24d445c --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InClass/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InClass; + +public sealed partial class OutterForInt + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InClass/OutterForString.{T}.cs b/src/Monify.Console/Structs/Nested/InClass/OutterForString.{T}.cs new file mode 100644 index 0000000..cb7203a --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InClass/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InClass; + +public sealed partial class OutterForString + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InInterface/IOutterForArray.{T}.cs b/src/Monify.Console/Structs/Nested/InInterface/IOutterForArray.{T}.cs new file mode 100644 index 0000000..5862e9a --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InInterface/IOutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InInterface; + +public partial interface IOutterForArray + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InInterface/IOutterForInt.{T}.cs b/src/Monify.Console/Structs/Nested/InInterface/IOutterForInt.{T}.cs new file mode 100644 index 0000000..9c534cd --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InInterface/IOutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InInterface; + +public partial interface IOutterForInt + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InInterface/IOutterForString.{T}.cs b/src/Monify.Console/Structs/Nested/InInterface/IOutterForString.{T}.cs new file mode 100644 index 0000000..6c6fd7b --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InInterface/IOutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InInterface; + +public partial interface IOutterForString + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InRecord/OutterForArray.{T}.cs b/src/Monify.Console/Structs/Nested/InRecord/OutterForArray.{T}.cs new file mode 100644 index 0000000..b522b5a --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InRecord/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InRecord; + +public sealed partial record OutterForArray + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InRecord/OutterForInt.{T}.cs b/src/Monify.Console/Structs/Nested/InRecord/OutterForInt.{T}.cs new file mode 100644 index 0000000..d72f4f7 --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InRecord/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InRecord; + +public sealed partial record OutterForInt + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InRecord/OutterForString.{T}.cs b/src/Monify.Console/Structs/Nested/InRecord/OutterForString.{T}.cs new file mode 100644 index 0000000..3927241 --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InRecord/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InRecord; + +public sealed partial record OutterForString + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForArray.{T}.cs b/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForArray.{T}.cs new file mode 100644 index 0000000..7daba7a --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct; + +public readonly partial record struct OutterForArray + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForInt.{T}.cs b/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForInt.{T}.cs new file mode 100644 index 0000000..32a20ae --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct; + +public readonly partial record struct OutterForInt + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForString.{T}.cs b/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForString.{T}.cs new file mode 100644 index 0000000..cfb2522 --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct; + +public readonly partial record struct OutterForString + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InStruct/OutterForArray.{T}.cs b/src/Monify.Console/Structs/Nested/InStruct/OutterForArray.{T}.cs new file mode 100644 index 0000000..51b8a24 --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InStruct/OutterForArray.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InStruct; + +public readonly ref partial struct OutterForArray + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InStruct/OutterForInt.{T}.cs b/src/Monify.Console/Structs/Nested/InStruct/OutterForInt.{T}.cs new file mode 100644 index 0000000..7d98f98 --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InStruct/OutterForInt.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InStruct; + +public readonly ref partial struct OutterForInt + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InStruct/OutterForString.{T}.cs b/src/Monify.Console/Structs/Nested/InStruct/OutterForString.{T}.cs new file mode 100644 index 0000000..f433eda --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InStruct/OutterForString.{T}.cs @@ -0,0 +1,8 @@ +namespace Monify.Console.Structs.Nested.InStruct; + +public readonly ref partial struct OutterForString + where T : struct +{ + [Monify] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Simple/SimpleForArray.cs b/src/Monify.Console/Structs/Simple/SimpleForArray.cs new file mode 100644 index 0000000..04a709f --- /dev/null +++ b/src/Monify.Console/Structs/Simple/SimpleForArray.cs @@ -0,0 +1,4 @@ +namespace Monify.Console.Structs.Simple; + +[Monify] +public readonly partial struct SimpleForArray; \ No newline at end of file diff --git a/src/Monify.Console/Structs/Simple/SimpleForInt.cs b/src/Monify.Console/Structs/Simple/SimpleForInt.cs new file mode 100644 index 0000000..5883822 --- /dev/null +++ b/src/Monify.Console/Structs/Simple/SimpleForInt.cs @@ -0,0 +1,4 @@ +namespace Monify.Console.Structs.Simple; + +[Monify] +public readonly partial struct SimpleForInt; \ No newline at end of file diff --git a/src/Monify.Console/Structs/Simple/SimpleForString.cs b/src/Monify.Console/Structs/Simple/SimpleForString.cs new file mode 100644 index 0000000..bc52d16 --- /dev/null +++ b/src/Monify.Console/Structs/Simple/SimpleForString.cs @@ -0,0 +1,4 @@ +namespace Monify.Console.Structs.Simple; + +[Monify] +public readonly partial struct SimpleForString; \ No newline at end of file From c5d017585ff7b33dbb64802ab36ace278fd60cc4 Mon Sep 17 00:00:00 2001 From: Paul Martins <50200071+MooVC@users.noreply.github.com> Date: Sun, 26 Oct 2025 20:55:57 +0000 Subject: [PATCH 3/9] docs: add xml comments to console samples (#21) --- .../Classes/Nested/InClass/OutterForArray.{T}.cs | 7 +++++++ .../Classes/Nested/InClass/OutterForInt.{T}.cs | 7 +++++++ .../Classes/Nested/InClass/OutterForString.{T}.cs | 7 +++++++ .../Classes/Nested/InInterface/IOutterForArray.{T}.cs | 7 +++++++ .../Classes/Nested/InInterface/IOutterForInt.{T}.cs | 7 +++++++ .../Classes/Nested/InInterface/IOutterForString.{T}.cs | 7 +++++++ .../Classes/Nested/InRecord/OutterForArray.{T}.cs | 7 +++++++ .../Classes/Nested/InRecord/OutterForInt.{T}.cs | 7 +++++++ .../Classes/Nested/InRecord/OutterForString.{T}.cs | 7 +++++++ .../Classes/Nested/InRecordStruct/OutterForArray.{T}.cs | 7 +++++++ .../Classes/Nested/InRecordStruct/OutterForInt.{T}.cs | 7 +++++++ .../Classes/Nested/InRecordStruct/OutterForString.{T}.cs | 7 +++++++ .../Classes/Nested/InStruct/OutterForArray.{T}.cs | 7 +++++++ .../Classes/Nested/InStruct/OutterForInt.{T}.cs | 7 +++++++ .../Classes/Nested/InStruct/OutterForString.{T}.cs | 7 +++++++ src/Monify.Console/Classes/Simple/SimpleForArray.cs | 3 +++ src/Monify.Console/Classes/Simple/SimpleForInt.cs | 3 +++ src/Monify.Console/Classes/Simple/SimpleForString.cs | 3 +++ src/Monify.Console/Records/Simple/SimpleForArray.cs | 3 +++ src/Monify.Console/Records/Simple/SimpleForInt.cs | 3 +++ src/Monify.Console/Records/Simple/SimpleForString.cs | 3 +++ src/Monify.Console/Structs/Simple/SimpleForArray.cs | 3 +++ src/Monify.Console/Structs/Simple/SimpleForInt.cs | 3 +++ src/Monify.Console/Structs/Simple/SimpleForString.cs | 3 +++ 24 files changed, 132 insertions(+) diff --git a/src/Monify.Console/Classes/Nested/InClass/OutterForArray.{T}.cs b/src/Monify.Console/Classes/Nested/InClass/OutterForArray.{T}.cs index b44d7ef..5a7b00c 100644 --- a/src/Monify.Console/Classes/Nested/InClass/OutterForArray.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InClass/OutterForArray.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InClass; +/// +/// Provides a nested class example that uses Monify with integer array types. +/// +/// The struct type that the outer class is parameterized with. public sealed partial class OutterForArray where T : struct { + /// + /// Represents the inner class decorated by Monify for integer array types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InClass/OutterForInt.{T}.cs b/src/Monify.Console/Classes/Nested/InClass/OutterForInt.{T}.cs index 51ed580..24a9814 100644 --- a/src/Monify.Console/Classes/Nested/InClass/OutterForInt.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InClass/OutterForInt.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InClass; +/// +/// Provides a nested class example that uses Monify with integer types. +/// +/// The struct type that the outer class is parameterized with. public sealed partial class OutterForInt where T : struct { + /// + /// Represents the inner class decorated by Monify for integer types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InClass/OutterForString.{T}.cs b/src/Monify.Console/Classes/Nested/InClass/OutterForString.{T}.cs index c911be4..4e88f77 100644 --- a/src/Monify.Console/Classes/Nested/InClass/OutterForString.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InClass/OutterForString.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InClass; +/// +/// Provides a nested class example that uses Monify with string types. +/// +/// The struct type that the outer class is parameterized with. public sealed partial class OutterForString where T : struct { + /// + /// Represents the inner class decorated by Monify for string types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InInterface/IOutterForArray.{T}.cs b/src/Monify.Console/Classes/Nested/InInterface/IOutterForArray.{T}.cs index 1754bfe..c9b6397 100644 --- a/src/Monify.Console/Classes/Nested/InInterface/IOutterForArray.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InInterface/IOutterForArray.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InInterface; +/// +/// Defines a nested interface example that uses Monify with integer array types. +/// +/// The struct type that the interface is parameterized with. public partial interface IOutterForArray where T : struct { + /// + /// Represents the inner class decorated by Monify for integer array types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InInterface/IOutterForInt.{T}.cs b/src/Monify.Console/Classes/Nested/InInterface/IOutterForInt.{T}.cs index 6a3217e..f962cf1 100644 --- a/src/Monify.Console/Classes/Nested/InInterface/IOutterForInt.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InInterface/IOutterForInt.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InInterface; +/// +/// Defines a nested interface example that uses Monify with integer types. +/// +/// The struct type that the interface is parameterized with. public partial interface IOutterForInt where T : struct { + /// + /// Represents the inner class decorated by Monify for integer types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InInterface/IOutterForString.{T}.cs b/src/Monify.Console/Classes/Nested/InInterface/IOutterForString.{T}.cs index 4360f15..31d21d0 100644 --- a/src/Monify.Console/Classes/Nested/InInterface/IOutterForString.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InInterface/IOutterForString.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InInterface; +/// +/// Defines a nested interface example that uses Monify with string types. +/// +/// The struct type that the interface is parameterized with. public partial interface IOutterForString where T : struct { + /// + /// Represents the inner class decorated by Monify for string types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecord/OutterForArray.{T}.cs b/src/Monify.Console/Classes/Nested/InRecord/OutterForArray.{T}.cs index 61703f8..c9f7c15 100644 --- a/src/Monify.Console/Classes/Nested/InRecord/OutterForArray.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InRecord/OutterForArray.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InRecord; +/// +/// Provides a nested record example that uses Monify with integer array types. +/// +/// The struct type that the outer record is parameterized with. public sealed partial record OutterForArray where T : struct { + /// + /// Represents the inner class decorated by Monify for integer array types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecord/OutterForInt.{T}.cs b/src/Monify.Console/Classes/Nested/InRecord/OutterForInt.{T}.cs index fe725a5..c710693 100644 --- a/src/Monify.Console/Classes/Nested/InRecord/OutterForInt.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InRecord/OutterForInt.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InRecord; +/// +/// Provides a nested record example that uses Monify with integer types. +/// +/// The struct type that the outer record is parameterized with. public sealed partial record OutterForInt where T : struct { + /// + /// Represents the inner class decorated by Monify for integer types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecord/OutterForString.{T}.cs b/src/Monify.Console/Classes/Nested/InRecord/OutterForString.{T}.cs index 71caed5..a2c6deb 100644 --- a/src/Monify.Console/Classes/Nested/InRecord/OutterForString.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InRecord/OutterForString.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InRecord; +/// +/// Provides a nested record example that uses Monify with string types. +/// +/// The struct type that the outer record is parameterized with. public sealed partial record OutterForString where T : struct { + /// + /// Represents the inner class decorated by Monify for string types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForArray.{T}.cs b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForArray.{T}.cs index e035c73..8885d1d 100644 --- a/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForArray.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForArray.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InRecordStruct; +/// +/// Provides a nested record struct example that uses Monify with integer array types. +/// +/// The struct type that the outer record struct is parameterized with. public readonly partial record struct OutterForArray where T : struct { + /// + /// Represents the inner class decorated by Monify for integer array types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForInt.{T}.cs b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForInt.{T}.cs index bf2a7fd..040be27 100644 --- a/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForInt.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForInt.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InRecordStruct; +/// +/// Provides a nested record struct example that uses Monify with integer types. +/// +/// The struct type that the outer record struct is parameterized with. public readonly partial record struct OutterForInt where T : struct { + /// + /// Represents the inner class decorated by Monify for integer types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForString.{T}.cs b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForString.{T}.cs index ff31e3c..3599a63 100644 --- a/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForString.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForString.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InRecordStruct; +/// +/// Provides a nested record struct example that uses Monify with string types. +/// +/// The struct type that the outer record struct is parameterized with. public readonly partial record struct OutterForString where T : struct { + /// + /// Represents the inner class decorated by Monify for string types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InStruct/OutterForArray.{T}.cs b/src/Monify.Console/Classes/Nested/InStruct/OutterForArray.{T}.cs index da8599d..863f4c2 100644 --- a/src/Monify.Console/Classes/Nested/InStruct/OutterForArray.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InStruct/OutterForArray.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InStruct; +/// +/// Provides a nested struct example that uses Monify with integer array types. +/// +/// The struct type that the outer struct is parameterized with. public readonly ref partial struct OutterForArray where T : struct { + /// + /// Represents the inner class decorated by Monify for integer array types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InStruct/OutterForInt.{T}.cs b/src/Monify.Console/Classes/Nested/InStruct/OutterForInt.{T}.cs index d8397dc..16531d1 100644 --- a/src/Monify.Console/Classes/Nested/InStruct/OutterForInt.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InStruct/OutterForInt.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InStruct; +/// +/// Provides a nested struct example that uses Monify with integer types. +/// +/// The struct type that the outer struct is parameterized with. public readonly ref partial struct OutterForInt where T : struct { + /// + /// Represents the inner class decorated by Monify for integer types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InStruct/OutterForString.{T}.cs b/src/Monify.Console/Classes/Nested/InStruct/OutterForString.{T}.cs index ea40fe4..c456727 100644 --- a/src/Monify.Console/Classes/Nested/InStruct/OutterForString.{T}.cs +++ b/src/Monify.Console/Classes/Nested/InStruct/OutterForString.{T}.cs @@ -1,8 +1,15 @@ namespace Monify.Console.Classes.Nested.InStruct; +/// +/// Provides a nested struct example that uses Monify with string types. +/// +/// The struct type that the outer struct is parameterized with. public readonly ref partial struct OutterForString where T : struct { + /// + /// Represents the inner class decorated by Monify for string types. + /// [Monify] public sealed partial class Inner; } \ No newline at end of file diff --git a/src/Monify.Console/Classes/Simple/SimpleForArray.cs b/src/Monify.Console/Classes/Simple/SimpleForArray.cs index 5dc0634..99d12c1 100644 --- a/src/Monify.Console/Classes/Simple/SimpleForArray.cs +++ b/src/Monify.Console/Classes/Simple/SimpleForArray.cs @@ -1,4 +1,7 @@ namespace Monify.Console.Classes.Simple; +/// +/// Represents a simple class decorated by Monify for integer array types. +/// [Monify] public partial class SimpleForArray; \ No newline at end of file diff --git a/src/Monify.Console/Classes/Simple/SimpleForInt.cs b/src/Monify.Console/Classes/Simple/SimpleForInt.cs index edd20d6..165e0d5 100644 --- a/src/Monify.Console/Classes/Simple/SimpleForInt.cs +++ b/src/Monify.Console/Classes/Simple/SimpleForInt.cs @@ -1,4 +1,7 @@ namespace Monify.Console.Classes.Simple; +/// +/// Represents a simple class decorated by Monify for integer types. +/// [Monify] public partial class SimpleForInt; \ No newline at end of file diff --git a/src/Monify.Console/Classes/Simple/SimpleForString.cs b/src/Monify.Console/Classes/Simple/SimpleForString.cs index b54320c..13e2987 100644 --- a/src/Monify.Console/Classes/Simple/SimpleForString.cs +++ b/src/Monify.Console/Classes/Simple/SimpleForString.cs @@ -1,4 +1,7 @@ namespace Monify.Console.Classes.Simple; +/// +/// Represents a simple class decorated by Monify for string types. +/// [Monify] public partial class SimpleForString; \ No newline at end of file diff --git a/src/Monify.Console/Records/Simple/SimpleForArray.cs b/src/Monify.Console/Records/Simple/SimpleForArray.cs index 9886895..e1d3428 100644 --- a/src/Monify.Console/Records/Simple/SimpleForArray.cs +++ b/src/Monify.Console/Records/Simple/SimpleForArray.cs @@ -1,4 +1,7 @@ namespace Monify.Console.Records.Simple; +/// +/// Represents a simple record decorated by Monify for integer array types. +/// [Monify] public partial record SimpleForArray; \ No newline at end of file diff --git a/src/Monify.Console/Records/Simple/SimpleForInt.cs b/src/Monify.Console/Records/Simple/SimpleForInt.cs index b6868f3..09cc9e1 100644 --- a/src/Monify.Console/Records/Simple/SimpleForInt.cs +++ b/src/Monify.Console/Records/Simple/SimpleForInt.cs @@ -1,4 +1,7 @@ namespace Monify.Console.Records.Simple; +/// +/// Represents a simple record decorated by Monify for integer types. +/// [Monify] public partial record SimpleForInt; \ No newline at end of file diff --git a/src/Monify.Console/Records/Simple/SimpleForString.cs b/src/Monify.Console/Records/Simple/SimpleForString.cs index 8c5a074..54f9ff3 100644 --- a/src/Monify.Console/Records/Simple/SimpleForString.cs +++ b/src/Monify.Console/Records/Simple/SimpleForString.cs @@ -1,4 +1,7 @@ namespace Monify.Console.Records.Simple; +/// +/// Represents a simple record decorated by Monify for string types. +/// [Monify] public partial record SimpleForString; \ No newline at end of file diff --git a/src/Monify.Console/Structs/Simple/SimpleForArray.cs b/src/Monify.Console/Structs/Simple/SimpleForArray.cs index 04a709f..11fa258 100644 --- a/src/Monify.Console/Structs/Simple/SimpleForArray.cs +++ b/src/Monify.Console/Structs/Simple/SimpleForArray.cs @@ -1,4 +1,7 @@ namespace Monify.Console.Structs.Simple; +/// +/// Represents a simple readonly struct decorated by Monify for integer array types. +/// [Monify] public readonly partial struct SimpleForArray; \ No newline at end of file diff --git a/src/Monify.Console/Structs/Simple/SimpleForInt.cs b/src/Monify.Console/Structs/Simple/SimpleForInt.cs index 5883822..93dcfaf 100644 --- a/src/Monify.Console/Structs/Simple/SimpleForInt.cs +++ b/src/Monify.Console/Structs/Simple/SimpleForInt.cs @@ -1,4 +1,7 @@ namespace Monify.Console.Structs.Simple; +/// +/// Represents a simple readonly struct decorated by Monify for integer types. +/// [Monify] public readonly partial struct SimpleForInt; \ No newline at end of file diff --git a/src/Monify.Console/Structs/Simple/SimpleForString.cs b/src/Monify.Console/Structs/Simple/SimpleForString.cs index bc52d16..bc47d27 100644 --- a/src/Monify.Console/Structs/Simple/SimpleForString.cs +++ b/src/Monify.Console/Structs/Simple/SimpleForString.cs @@ -1,4 +1,7 @@ namespace Monify.Console.Structs.Simple; +/// +/// Represents a simple readonly struct decorated by Monify for string types. +/// [Monify] public readonly partial struct SimpleForString; \ No newline at end of file From c15e6f319f67aae829c304858ece1ca282cb22d6 Mon Sep 17 00:00:00 2001 From: Paul Martins <50200071+MooVC@users.noreply.github.com> Date: Sun, 26 Oct 2025 21:36:13 +0000 Subject: [PATCH 4/9] Add comprehensive tests for SimpleForInt Monify output (#23) * Add comprehensive tests for SimpleForInt Monify output * Corrected tests for SimpleForInt --- .../WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...qualityOperatorWithSimpleForIntIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithSimpleForIntIsCalled.cs | 49 +++++++++++++++ .../WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...qualityOperatorWithSimpleForIntIsCalled.cs | 35 +++++++++++ .../SimpleForIntTests/WhenToStringIsCalled.cs | 19 ++++++ 12 files changed, 446 insertions(+) create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenToStringIsCalled.cs diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..c8f24ec --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForInt instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..884a359 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int SampleValue = 101; + private const int DifferentValue = 202; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForInt? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs new file mode 100644 index 0000000..848eb15 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenEqualityOperatorWithSimpleForIntIsCalled +{ + private const int SampleValue = 14; + private const int DifferentValue = 17; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForInt? left = default; + SimpleForInt? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForInt? left = default; + SimpleForInt right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..bfa1059 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int SampleValue = 36; + private const int DifferentValue = 12; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..c0efa9c --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 28; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentSimpleForIntThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + object other = new SimpleForInt(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + SimpleForInt subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs new file mode 100644 index 0000000..5200bcc --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenEqualsWithSimpleForIntIsCalled +{ + private const int SampleValue = 51; + private const int DifferentValue = 5; + + [Fact] + public static void GivenOtherHasSameValueThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + SimpleForInt other = new(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenOtherIsNullThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + SimpleForInt? other = default; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenOtherHasDifferentValueThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + SimpleForInt other = new(DifferentValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..b71acbd --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 3; + private const int SecondValue = 4; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForInt first = new(FirstValue); + SimpleForInt second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForInt first = new(FirstValue); + SimpleForInt second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..296bbe3 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 77; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForInt result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..42906e9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + SimpleForInt? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe("subject"); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..59868ec --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int SampleValue = 7; + private const int DifferentValue = 9; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForInt? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs new file mode 100644 index 0000000..7d17868 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenInequalityOperatorWithSimpleForIntIsCalled +{ + private const int SampleValue = 63; + private const int DifferentValue = 64; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..6a42a34 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Simple.SimpleForIntTests; + +public static class WhenToStringIsCalled +{ + private const int SampleValue = 91; + + [Fact] + public static void GivenValueThenThrowFormatException() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + Action act = () => subject.ToString(); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file From 4b40314f4cdca3185315f377c4babb1eb2750824 Mon Sep 17 00:00:00 2001 From: Paul Martins <50200071+MooVC@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:46:27 +0000 Subject: [PATCH 5/9] Add comprehensive tests for Monify console wrappers (#24) * Add Monify console wrapper tests * Minor format corrections * - `ToString` no longer throws a `FormatException`. * - Equality checks involing an encapsulated array containing identical values now yield true (#19). --- CHANGELOG.md | 6 ++ build/Tests.props | 2 +- .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithIOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...nEqualsWithIOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...peratorWithIOutterForArrayInnerIsCalled.cs | 35 +++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...yOperatorWithIOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...henEqualsWithIOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ ...yOperatorWithIOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...eratorWithIOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ ...EqualsWithIOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...eratorWithIOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...alityOperatorWithSimpleForArrayIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithSimpleForArrayIsCalled.cs | 35 +++++++++++ .../WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...alityOperatorWithSimpleForArrayIsCalled.cs | 35 +++++++++++ .../WhenToStringIsCalled.cs | 20 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 2 +- ...qualityOperatorWithSimpleForIntIsCalled.cs | 2 +- .../WhenEqualsWithIntIsCalled.cs | 2 +- .../WhenEqualsWithSimpleForIntIsCalled.cs | 2 +- .../WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntIsCalled.cs | 2 +- ...qualityOperatorWithSimpleForIntIsCalled.cs | 2 +- .../SimpleForIntTests/WhenToStringIsCalled.cs | 7 ++- .../WhenConstructorIsCalled.cs | 19 ++++++ ...lityOperatorWithSimpleForStringIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithSimpleForStringIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...lityOperatorWithSimpleForStringIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithIOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...nEqualsWithIOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...peratorWithIOutterForArrayInnerIsCalled.cs | 35 +++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...yOperatorWithIOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...henEqualsWithIOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ ...yOperatorWithIOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...eratorWithIOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ ...EqualsWithIOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...eratorWithIOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 19 ++++++ .../WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...alityOperatorWithSimpleForArrayIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithSimpleForArrayIsCalled.cs | 35 +++++++++++ .../WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 33 ++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...alityOperatorWithSimpleForArrayIsCalled.cs | 35 +++++++++++ .../WhenToStringIsCalled.cs | 19 ++++++ .../WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...qualityOperatorWithSimpleForIntIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithSimpleForIntIsCalled.cs | 35 +++++++++++ .../WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 33 ++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...qualityOperatorWithSimpleForIntIsCalled.cs | 35 +++++++++++ .../SimpleForIntTests/WhenToStringIsCalled.cs | 19 ++++++ .../WhenConstructorIsCalled.cs | 19 ++++++ ...lityOperatorWithSimpleForStringIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithSimpleForStringIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 33 ++++++++++ ...lityOperatorWithSimpleForStringIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenToStringIsCalled.cs | 19 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 19 ++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 19 ++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithIOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...nEqualsWithIOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 19 ++++++ ...peratorWithIOutterForArrayInnerIsCalled.cs | 35 +++++++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...yOperatorWithIOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...henEqualsWithIOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 19 ++++++ ...yOperatorWithIOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...eratorWithIOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ ...EqualsWithIOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 19 ++++++ ...eratorWithIOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 19 ++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 19 ++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 19 ++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 19 ++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...enEqualsWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 19 ++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...OperatorWithOutterForArrayInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 63 +++++++++++++++++++ .../InnerTests/WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...WhenEqualsWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 19 ++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...tyOperatorWithOutterForIntInnerIsCalled.cs | 35 +++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../InnerTests/WhenConstructorIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ ...nEqualsWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../InnerTests/WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 19 ++++++ ...peratorWithOutterForStringInnerIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../InnerTests/WhenToStringIsCalled.cs | 20 ++++++ .../WhenConstructorIsCalled.cs | 19 ++++++ ...henEqualityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...alityOperatorWithSimpleForArrayIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntArrayIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithSimpleForArrayIsCalled.cs | 35 +++++++++++ .../WhenGetHashCodeIsCalled.cs | 37 +++++++++++ ...henImplicitOperatorFromIntArrayIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntArrayIsCalled.cs | 19 ++++++ ...nInequalityOperatorWithIntArrayIsCalled.cs | 46 ++++++++++++++ ...alityOperatorWithSimpleForArrayIsCalled.cs | 35 +++++++++++ .../WhenToStringIsCalled.cs | 20 ++++++ .../WhenConstructorIsCalled.cs | 19 ++++++ .../WhenEqualityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...qualityOperatorWithSimpleForIntIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualsWithIntIsCalled.cs | 33 ++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithSimpleForIntIsCalled.cs | 35 +++++++++++ .../WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromIntIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToIntIsCalled.cs | 19 ++++++ .../WhenInequalityOperatorWithIntIsCalled.cs | 46 ++++++++++++++ ...qualityOperatorWithSimpleForIntIsCalled.cs | 35 +++++++++++ .../SimpleForIntTests/WhenToStringIsCalled.cs | 20 ++++++ .../WhenConstructorIsCalled.cs | 19 ++++++ ...lityOperatorWithSimpleForStringIsCalled.cs | 63 +++++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenEqualsWithObjectIsCalled.cs | 47 ++++++++++++++ .../WhenEqualsWithSimpleForStringIsCalled.cs | 35 +++++++++++ .../WhenEqualsWithStringIsCalled.cs | 33 ++++++++++ .../WhenGetHashCodeIsCalled.cs | 37 +++++++++++ .../WhenImplicitOperatorFromStringIsCalled.cs | 19 ++++++ .../WhenImplicitOperatorToStringIsCalled.cs | 19 ++++++ ...lityOperatorWithSimpleForStringIsCalled.cs | 35 +++++++++++ ...henInequalityOperatorWithStringIsCalled.cs | 46 ++++++++++++++ .../WhenToStringIsCalled.cs | 20 ++++++ .../Classes/Nested.InClass.Expected.cs | 2 +- .../Classes/Nested.InInterface.Expected.cs | 2 +- .../Classes/Nested.InRecord.Expected.cs | 2 +- .../Classes/Nested.InRecordStruct.Expected.cs | 2 +- .../Classes/Nested.InStruct.Expected.cs | 2 +- .../Declarations/Classes/Simple.Expected.cs | 2 +- .../Records/Nested.InClass.Expected.cs | 2 +- .../Records/Nested.InInterface.Expected.cs | 2 +- .../Records/Nested.InRecord.Expected.cs | 2 +- .../Records/Nested.InRecordStruct.Expected.cs | 2 +- .../Records/Nested.InStruct.Expected.cs | 2 +- .../Structs/Nested.InClass.Expected.cs | 2 +- .../Structs/Nested.InInterface.Expected.cs | 2 +- .../Structs/Nested.InRecord.Expected.cs | 2 +- .../Structs/Nested.InRecordStruct.Expected.cs | 2 +- .../Structs/Nested.InStruct.Expected.cs | 2 +- .../Declarations/Structs/Simple.Expected.cs | 2 +- src/Monify/Model/Subject.cs | 8 +++ .../INamedTypeSymbolExtensions.ToSubject.cs | 1 + .../ISymbolExtensions.IsAttribute.cs | 8 +-- .../ITypeSymbolExtensions.IsSequence.cs | 25 ++++++++ src/Monify/Strategies/ToStringStrategy.cs | 6 +- src/Monify/TypeGenerator.cs | 16 ++++- 669 files changed, 22768 insertions(+), 38 deletions(-) create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenToStringIsCalled.cs create mode 100644 src/Monify/Semantics/ITypeSymbolExtensions.IsSequence.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index d9cc583..4472302 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to Monify will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +# [1.1.3] - TBC + +## Fixed +- Equality checks involing an encapsulated array containing identical values now yield true (#19). +- `ToString` no longer throws a `FormatException`. + # [1.1.2] - 2025-10-20 ## Fixed diff --git a/build/Tests.props b/build/Tests.props index 4d46a3e..4a96ee8 100644 --- a/build/Tests.props +++ b/build/Tests.props @@ -7,7 +7,7 @@ GeneratedCodeAttribute Obsolete **/*.Designer.cs - CA1859;CA1861 + CA1859;CA1861;IDE0039 $(MSBuildProjectName.Replace('.Tests', '')) net9.0 diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..4013db0 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..68f1b94 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..38010b4 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..179e8e7 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..265b9d3 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..02aa82b --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..b99f254 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..7ebcda0 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..139a577 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..35bc3d4 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..7c784ff --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..da96198 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..9994343 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..94df7f3 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..ff575ca --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..6c28f44 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..fc04672 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..eeefec9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..f9ea02a --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..f000a07 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..af030ea --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..8a5e808 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..dc516fb --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..4ca6fb8 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { 42 }"; + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenTheExpectedStringIsReturned() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..75c0690 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..711ec60 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..5eb9f80 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..95fba45 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..4153265 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..815590d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..351f276 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..8dd9aa7 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..ddfa059 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..f795216 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..a4bb004 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..3db4579 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"Inner {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..db29dcf --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..5586f91 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForArray.Inner? left = default; + IOutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForArray.Inner? left = default; + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..dc3b71b --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..7352bda --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..bd0efc2 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..9b38db1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentIOutterForArrayInnerThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + object other = new IOutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..630356f --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForArray.Inner first = new(_firstValue); + IOutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForArray.Inner first = new(_firstValue); + IOutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..a2396a7 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..6e1a2af --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + IOutterForArray.Inner? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..47530f3 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..3fe0d74 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..d5e4a6f --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..aeaac01 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..8bf48b9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForInt.Inner? left = default; + IOutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForInt.Inner? left = default; + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..22b819e --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..dc5e2b1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualsWithIOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..258c1f9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..895828e --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentIOutterForIntInnerThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + object other = new IOutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..b5c41c3 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForInt.Inner first = new(FirstValue); + IOutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForInt.Inner first = new(FirstValue); + IOutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..fd137f9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..75df0df --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + IOutterForInt.Inner? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..fa28392 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..efd89d4 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..3f39b87 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { 42 }"; + private const int SampleValue = 42; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..9a353f2 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..1dd8c59 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithIOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForString.Inner? left = default; + IOutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForString.Inner? left = default; + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..5dd53a1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..2873bd1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualsWithIOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..def40d9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentIOutterForStringInnerThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + object other = new IOutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..758affa --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..da26ec1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForString.Inner first = new(FirstValue); + IOutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForString.Inner first = new(FirstValue); + IOutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..d834dfb --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..931ef44 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + IOutterForString.Inner? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..c51d7aa --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithIOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..1370419 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..9400901 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"Inner {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..2b40d88 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..b3e48a8 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..80c3a44 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..2483409 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..edc6324 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..bd4369c --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..bbc12d1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..efe939c --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..a6f7698 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..0842dee --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..5d3d149 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..467ace2 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..af978f9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..7c40a36 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..a9cc255 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..7156b8c --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..fa4d6b8 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..3d454dd --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..dba8c77 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..358e331 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..dc6ec60 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..0d8d0f4 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..5174329 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..2080306 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { 42 }"; + private const int SampleValue = 42; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..04049d8 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..43b0192 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..1082eb6 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..ce307c6 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..43cb2fe --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..aa05d4a --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..0069e02 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..97c1964 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..4f98de8 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..10dd2cd --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..2d5156e --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..773cdb6 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"Inner {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..e43d707 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..9d7bcd0 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..6410ebf --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..a9d097b --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..066d9f6 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..6c29fc5 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..f1c40a1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..af0c15d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..adf8961 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..2b82276 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..b1e37e5 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..5cfae1b --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..f707c95 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..9993c11 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..50a7ce1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..660487f --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..35a7a58 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..603539a --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..ffdd74e --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..57aebd2 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..98dad76 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..89d8131 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..d8a9ea8 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..d24947f --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { 42 }"; + private const int SampleValue = 42; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..4cdad6a --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..c2f1a10 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..177a507 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..69e0e98 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..d8e03b9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..0b4c724 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..08a1ac9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..99ee5a7 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..0ff4e00 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..5041676 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..2e78713 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..72b0122 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"Inner {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..da2d0f4 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..ba6991b --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..ec4b94e --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..54b46e4 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..5fb9ad7 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..e4f3385 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..b8bdd30 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..affa79b --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..022106d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..5cd6430 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..201b918 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..f9a4719 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..0635ab3 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..2cd1402 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..30b12ce --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..091f82d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..7d231b0 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..8aaecc4 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..d86cded --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..8cfcb02 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..14e7572 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..bef40d6 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..a0ff6cf --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..e8f31d9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { 42 }"; + private const int SampleValue = 42; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..fe623e8 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..394b16d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..2c12d53 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..aa87016 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..47b425d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..d1a7055 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..02e5c50 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..c71d874 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..a6df8c0 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..b77e253 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..6c45ad0 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..4687ca9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"Inner {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..08d5573 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForArray instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..b33a168 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForArray? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs new file mode 100644 index 0000000..de2188f --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenEqualityOperatorWithSimpleForArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForArray? left = default; + SimpleForArray? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForArray? left = default; + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..8091f5b --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..b2da9c6 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentSimpleForArrayThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + object other = new SimpleForArray(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs new file mode 100644 index 0000000..0da3057 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenEqualsWithSimpleForArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..d9322f1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForArray first = new(_firstValue); + SimpleForArray second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForArray first = new(_firstValue); + SimpleForArray second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..dce0568 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForArray result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..755dfd8 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + SimpleForArray? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..ae61624 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForArray? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs new file mode 100644 index 0000000..2d856a3 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenInequalityOperatorWithSimpleForArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..edbeb68 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Simple.SimpleForArrayTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "SimpleForArray { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index 884a359..b94e864 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -2,8 +2,8 @@ namespace Monify.Console.Classes.Simple.SimpleForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { - private const int SampleValue = 101; private const int DifferentValue = 202; + private const int SampleValue = 101; [Fact] public static void GivenSubjectIsNullThenReturnFalse() diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs index 848eb15..2a0369d 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs @@ -2,8 +2,8 @@ namespace Monify.Console.Classes.Simple.SimpleForIntTests; public static class WhenEqualityOperatorWithSimpleForIntIsCalled { - private const int SampleValue = 14; private const int DifferentValue = 17; + private const int SampleValue = 14; [Fact] public static void GivenBothNullThenReturnTrue() diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs index bfa1059..cf9d5fb 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs @@ -2,8 +2,8 @@ namespace Monify.Console.Classes.Simple.SimpleForIntTests; public static class WhenEqualsWithIntIsCalled { - private const int SampleValue = 36; private const int DifferentValue = 12; + private const int SampleValue = 36; [Fact] public static void GivenSameValueThenReturnTrue() diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs index 5200bcc..506e48f 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs @@ -2,8 +2,8 @@ namespace Monify.Console.Classes.Simple.SimpleForIntTests; public static class WhenEqualsWithSimpleForIntIsCalled { - private const int SampleValue = 51; private const int DifferentValue = 5; + private const int SampleValue = 51; [Fact] public static void GivenOtherHasSameValueThenReturnTrue() diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs index 42906e9..6e48d22 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -15,7 +15,7 @@ public static void GivenNullSubjectThenThrowsArgumentNullException() // Assert ArgumentNullException exception = Should.Throw(act); - exception.ParamName.ShouldBe("subject"); + exception.ParamName.ShouldBe(nameof(subject)); } [Fact] diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index 59868ec..bf9d622 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -2,8 +2,8 @@ namespace Monify.Console.Classes.Simple.SimpleForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { - private const int SampleValue = 7; private const int DifferentValue = 9; + private const int SampleValue = 7; [Fact] public static void GivenSubjectIsNullThenReturnTrue() diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs index 7d17868..8b7f62c 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs @@ -2,8 +2,8 @@ namespace Monify.Console.Classes.Simple.SimpleForIntTests; public static class WhenInequalityOperatorWithSimpleForIntIsCalled { - private const int SampleValue = 63; private const int DifferentValue = 64; + private const int SampleValue = 63; [Fact] public static void GivenSameValueThenReturnFalse() diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenToStringIsCalled.cs index 6a42a34..68da357 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForIntTests/WhenToStringIsCalled.cs @@ -2,18 +2,19 @@ namespace Monify.Console.Classes.Simple.SimpleForIntTests; public static class WhenToStringIsCalled { + private const string Expected = "SimpleForInt { 91 }"; private const int SampleValue = 91; [Fact] - public static void GivenValueThenThrowFormatException() + public static void GivenValueTheExpectedStringIsReturned() { // Arrange SimpleForInt subject = new(SampleValue); // Act - Action act = () => subject.ToString(); + string result = subject.ToString(); // Assert - _ = Should.Throw(act); + result.ShouldBe(Expected); } } \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..275ee57 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForString instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs new file mode 100644 index 0000000..8da71be --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenEqualityOperatorWithSimpleForStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForString? left = default; + SimpleForString? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForString? left = default; + SimpleForString right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..88f6e08 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForString? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..acdcd4f --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentSimpleForStringThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + object other = new SimpleForString(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + SimpleForString subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs new file mode 100644 index 0000000..0e794c9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenEqualsWithSimpleForStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..353dceb --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..1b68d2f --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForString first = new(FirstValue); + SimpleForString second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForString first = new(FirstValue); + SimpleForString second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..0aa0fcc --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForString result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..0f2b86c --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + SimpleForString? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs new file mode 100644 index 0000000..dad703d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenInequalityOperatorWithSimpleForStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..6946d82 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForString? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..bc5688e --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Classes.Simple.SimpleForStringTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"SimpleForString {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..e07fc3d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..7b1faea --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..6613df2 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..5f65afe --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..d01b44e --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..acc71f6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..8ab75d9 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..dd18ba2 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..7000f18 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..d3296ea --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..127f7f2 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..21d81df --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..b3e7df6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..acfcc6f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..2483b07 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..636c75e --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..3c8b6d5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..7122570 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..209b4db --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..dab146f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..2791ca3 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..70a5c13 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..34a4169 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..c5f775d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..359f93d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..7ae4156 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..c5b79ec --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..8bf79b9 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..9273761 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..c6e9f96 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..c952794 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..1c78b24 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..a903a21 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..ab0ab55 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..c2ddc23 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..1130488 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..6473226 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..9f4d305 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForArray.Inner? left = default; + IOutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForArray.Inner? left = default; + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..7740b0c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..2433eba --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..2dde2c8 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..305383c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentIOutterForArrayInnerThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + object other = new IOutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..7a50981 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForArray.Inner first = new(_firstValue); + IOutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForArray.Inner first = new(_firstValue); + IOutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..b5591df --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..8ed5412 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + IOutterForArray.Inner? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..24d831b --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..d43788c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..a71e0b4 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..35ce23f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..38235f5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForInt.Inner? left = default; + IOutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForInt.Inner? left = default; + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..fdd9206 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..58f5397 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualsWithIOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..6a3fc7f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..aa142c6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentIOutterForIntInnerThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + object other = new IOutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..bff2635 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForInt.Inner first = new(FirstValue); + IOutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForInt.Inner first = new(FirstValue); + IOutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..39fe3b2 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..cad179f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + IOutterForInt.Inner? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..6c1cbb7 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..74fb2a8 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..fb59a72 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..c8bf8f5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..0b19345 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithIOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForString.Inner? left = default; + IOutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForString.Inner? left = default; + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..5d618f6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..4ce3014 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualsWithIOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..7ca96f5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentIOutterForStringInnerThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + object other = new IOutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..d6e8e5c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..4082efb --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForString.Inner first = new(FirstValue); + IOutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForString.Inner first = new(FirstValue); + IOutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..3f35fcb --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..f6cd281 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + IOutterForString.Inner? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..4f93b14 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithIOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..bed26ae --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..abe9140 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..28c0a10 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..e220c44 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..0ec2601 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..7ae2270 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..c641cd5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..780c95b --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..ff94a4a --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..1cfaeda --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..0f8e9a5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..3d8db6f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..8603901 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..b5f9b87 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..776e83b --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..58ac849 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..0faa8d6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..70c74ff --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..d23a119 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..74ac333 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..9a20a2e --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..09cee1f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..faf21e6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..69506bc --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..d0e5a87 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..ddefa09 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..2a5895b --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..bbcc5c1 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..be04c5f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..fc2d643 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..14f42f2 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..4557b3c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..fc1a754 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..1a1ab61 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..3a27da5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..cd66cdf --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..d102d05 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..7d55327 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..6b17d37 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..0283ce8 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..b4952d6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..a21ae1b --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..53b055c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..8046333 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..d4fe9f4 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..e1bf6ec --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..91ea60a --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..0c615e9 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..f3de426 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..fccc5f8 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..26a7271 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..6ef252d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..b7a012f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..b6ba974 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..c3339bf --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..9ff153a --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..2de2f3b --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..3e811a5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..74e6c1a --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..fcb75dc --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..5446785 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..8ce5241 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..1d91e6c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..23743cb --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..c109fa0 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..7a286f2 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..0389dbc --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..7dca359 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..2d5f6d6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..dae94da --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..e62b634 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..4ffa318 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..25d48d4 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..63edc3d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..bb23a1b --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..c8890f6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..af9bef4 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..63f6052 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..2019cc0 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..5a5ab0a --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..76ba9c7 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..b32a647 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..40d8bee --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..a06e654 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..5af43df --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..a690380 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..c8a238d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..19a99c0 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..4317fd2 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..0da6d59 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..d5b181c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..58e7eb0 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..da46448 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..88dd7a8 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..438bae8 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..bb31bb4 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..97a9574 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..6019726 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..cc8eeed --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..4bff482 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..dbcaa22 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..daf8f67 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..10cf7c6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..1756340 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..94c1523 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..12e3e7d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..fb802f9 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..15d7039 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..be88e00 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..4295448 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..5fe711f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForArray instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..52b80e3 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForArray? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs new file mode 100644 index 0000000..1c7e33f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenEqualityOperatorWithSimpleForArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForArray? left = default; + SimpleForArray? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForArray? left = default; + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..2d61007 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..601a892 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentSimpleForArrayThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + object other = new SimpleForArray(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs new file mode 100644 index 0000000..ce23eb2 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenEqualsWithSimpleForArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..e099892 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForArray first = new(_firstValue); + SimpleForArray second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForArray first = new(_firstValue); + SimpleForArray second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..0b1d0b5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForArray result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..65d1acd --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + SimpleForArray? subject = default; + + // Act + Action act = () => _ = (int[])subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..7f32dd8 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForArray? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs new file mode 100644 index 0000000..c96365d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenInequalityOperatorWithSimpleForArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..e6cecc5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Simple.SimpleForArrayTests; + +public static class WhenToStringIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("SimpleForArray { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..e949e0f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForInt instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..d37b159 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForInt? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs new file mode 100644 index 0000000..8b514af --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenEqualityOperatorWithSimpleForIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForInt? left = default; + SimpleForInt? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForInt? left = default; + SimpleForInt right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..3721e85 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..de8b1cd --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentSimpleForIntThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + object other = new SimpleForInt(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs new file mode 100644 index 0000000..3fc32eb --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenEqualsWithSimpleForIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..dea5f46 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForInt first = new(FirstValue); + SimpleForInt second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForInt first = new(FirstValue); + SimpleForInt second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..20d0917 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForInt result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..174d354 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + SimpleForInt? subject = default; + + // Act + Action act = () => _ = (int)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..f6a740c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForInt? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs new file mode 100644 index 0000000..e48da6a --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenInequalityOperatorWithSimpleForIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..0879fd3 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForIntTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Simple.SimpleForIntTests; + +public static class WhenToStringIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("SimpleForInt { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..93200bb --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForString instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs new file mode 100644 index 0000000..c3da25d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenEqualityOperatorWithSimpleForStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForString? left = default; + SimpleForString? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForString? left = default; + SimpleForString right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..681f458 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForString? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..ecd6f9b --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentSimpleForStringThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + object other = new SimpleForString(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs new file mode 100644 index 0000000..41003b1 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenEqualsWithSimpleForStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..e6c26a1 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..dec2b52 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForString first = new(FirstValue); + SimpleForString second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForString first = new(FirstValue); + SimpleForString second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..1ba6edb --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForString result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..846fedf --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + SimpleForString? subject = default; + + // Act + Action act = () => _ = (string)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs new file mode 100644 index 0000000..7833ea8 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenInequalityOperatorWithSimpleForStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..b32138e --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForString? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..94cf9ec --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Records.Simple.SimpleForStringTests; + +public static class WhenToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("SimpleForString { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..4c087ec --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..de2cbab --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..4e54acd --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..812aef2 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..268c28d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..9e7e353 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..d6e1ca6 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..66a7536 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..74fbd36 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..bd1b317 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..f919007 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..0bfb647 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..047d178 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..964202e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..3a513e4 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..43d462c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..9b53ce4 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..ab8a8cd --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..28a8a8a --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..aa27b6c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..d6754a4 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..86a4418 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..8e5d066 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..b5b94da --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { 42 }"; + private const int SampleValue = 42; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..c3aedbf --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..7d092e3 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..e3f9b19 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..8dd6ac0 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..2c60288 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..b1a44c6 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..3829ec0 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..06d1bac --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..55adaa0 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..db55729 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..1b378e4 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..30b5bb8 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"Inner {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..957163d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..ceaf799 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForArray.Inner? left = default; + IOutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForArray.Inner? left = default; + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..fdd9f1c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..852a4b5 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..937b0b4 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..149e0ac --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentIOutterForArrayInnerThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + object other = new IOutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..2c13a63 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForArray.Inner first = new(_firstValue); + IOutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForArray.Inner first = new(_firstValue); + IOutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..179a01d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..2d89b36 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..c731d48 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForArray.Inner left = new(_sampleValue); + IOutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..8916528 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..512e591 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + IOutterForArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..9d43595 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..fc7da0e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForInt.Inner? left = default; + IOutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForInt.Inner? left = default; + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..5dcda31 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..f2e8d95 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualsWithIOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..ec5d9b3 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..9a853a0 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentIOutterForIntInnerThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + object other = new IOutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..76a68e3 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForInt.Inner first = new(FirstValue); + IOutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForInt.Inner first = new(FirstValue); + IOutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..b1b8504 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..2424dc1 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..47bc50d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForInt.Inner left = new(SampleValue); + IOutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..19d63a8 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..401aa58 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { 42 }"; + private const int SampleValue = 42; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + IOutterForInt.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..82a8d24 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..6b01cd3 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithIOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForString.Inner? left = default; + IOutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForString.Inner? left = default; + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..adb0f36 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..6afc267 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualsWithIOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..83a75ec --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentIOutterForStringInnerThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + object other = new IOutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..7f40f80 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..2c829c2 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForString.Inner first = new(FirstValue); + IOutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForString.Inner first = new(FirstValue); + IOutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..72bcfa2 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..9417ac8 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..005ba1c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithIOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForString.Inner left = new(SampleValue); + IOutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..de89eec --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..8dc363b --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"Inner {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + IOutterForString.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..685b3f1 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..46b4376 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..330ab6a --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..676bd85 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..d38ef74 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..d9eb62c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..31b6741 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..87dd862 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..1436569 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..9395098 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..d5c206a --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..320bc66 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..72aff7e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..d44224d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..970ce3d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..bd56fa4 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..2a1f6f8 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..8c1d0b7 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..6d445f0 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..794940d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..7e71347 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..d48ae85 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..d09575a --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..5af58cb --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { 42 }"; + private const int SampleValue = 42; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..fa8d3e0 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..aaa3c3f --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..00c20ba --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..1207dfe --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..fc94faf --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..595c618 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..9712e65 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..a4d8e62 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..eaaf8f5 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..7bc8fe3 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..3e997e1 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..e627b6d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"Inner {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..d4b1c87 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..3c711ee --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..6deeee9 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..8cfe647 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..839ce9d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..3721ef8 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..c29292f --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..e3ae9ef --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..b4265d0 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..9b5506f --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..0659efc --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..93f5164 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..e6ccc7d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..b5df8e9 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..e1b25e2 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..38f8117 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..ab798ec --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..9ae6a48 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..dc7544b --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..e941552 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..1906b93 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..2ca6d86 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..ae7f9ab --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..9d3ea15 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { 42 }"; + private const int SampleValue = 42; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..dac03f4 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..5b1ee73 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..b025a0a --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..dfd4da9 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..4e84d77 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..e0d3e08 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..23766e9 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..f3aaa50 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..37b3613 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..12803a3 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..c331187 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..26cf28b --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"Inner {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..28ff4a5 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForArray.Inner instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..005ffb9 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..d4d22fc --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForArray.Inner? left = default; + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..23fa17d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..7168f05 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForArrayInnerThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = new OutterForArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..0ac51c6 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenEqualsWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..b95ea35 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForArray.Inner first = new(_firstValue); + OutterForArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..2bbb495 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForArray.Inner result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..8a62d6c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..3ff898c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs new file mode 100644 index 0000000..b5e5bfa --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForArray.Inner left = new(_sampleValue); + OutterForArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..8ecb142 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..d480490 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForInt.Inner instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..d5d26e9 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..535a0f2 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForInt.Inner? left = default; + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..e1ae1ee --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..71d4148 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForIntInnerThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = new OutterForInt.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..69ea5f1 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenEqualsWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..6f858a3 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForInt.Inner first = new(FirstValue); + OutterForInt.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..c4860df --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForInt.Inner result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..338894e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..c04c18f --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForInt.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs new file mode 100644 index 0000000..1b1b1f4 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForInt.Inner left = new(SampleValue); + OutterForInt.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..e742f9c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "Inner { 42 }"; + private const int SampleValue = 42; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForInt.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..6b1b911 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForString.Inner instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..4356e07 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? left = default; + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..9a5fbb7 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..ec2c7b1 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForStringInnerThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = new OutterForString.Inner(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..c400784 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..8bd63c6 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..27a9815 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForString.Inner first = new(FirstValue); + OutterForString.Inner second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..435819b --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForString.Inner result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..242d81e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs new file mode 100644 index 0000000..d5e5ddf --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForString.Inner left = new(SampleValue); + OutterForString.Inner right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..27bbbef --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForString.Inner? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..3ec40bc --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"Inner {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForString.Inner subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..e9eacba --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenConstructorIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForArray instance = new(_sampleValue); + + // Act + int[] actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..9359272 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenEqualityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForArray? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs new file mode 100644 index 0000000..0197492 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenEqualityOperatorWithSimpleForArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForArray? left = default; + SimpleForArray? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForArray? left = default; + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs new file mode 100644 index 0000000..3dbfae7 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenEqualsWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..eb8c363 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentSimpleForArrayThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + object other = new SimpleForArray(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs new file mode 100644 index 0000000..1e3cff9 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualsWithSimpleForArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenEqualsWithSimpleForArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..0b03908 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly int[] _firstValue = [7, 8, 9]; + private static readonly int[] _secondValue = [10, 11, 12]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForArray first = new(_firstValue); + SimpleForArray second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForArray first = new(_firstValue); + SimpleForArray second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs new file mode 100644 index 0000000..0f4250b --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenImplicitOperatorFromIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForArray result = _sampleValue; + + // Act + int[] actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs new file mode 100644 index 0000000..c183d33 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenImplicitOperatorToIntArrayIsCalled +{ + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + int[] actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs new file mode 100644 index 0000000..c805340 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenInequalityOperatorWithIntArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForArray? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs new file mode 100644 index 0000000..0a2bd8d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenInequalityOperatorWithSimpleForArrayIsCalled +{ + private static readonly int[] _differentValue = [4, 5, 6]; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForArray left = new(_sampleValue); + SimpleForArray right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..c536cb1 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Simple.SimpleForArrayTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "SimpleForArray { System.Int32[] }"; + private static readonly int[] _sampleValue = [1, 2, 3]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + SimpleForArray subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..75a0be6 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenConstructorIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForInt instance = new(SampleValue); + + // Act + int actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..413043c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenEqualityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForInt? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs new file mode 100644 index 0000000..236242f --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualityOperatorWithSimpleForIntIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenEqualityOperatorWithSimpleForIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForInt? left = default; + SimpleForInt? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForInt? left = default; + SimpleForInt right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs new file mode 100644 index 0000000..8b8d1db --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithIntIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenEqualsWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..ab92fdb --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentSimpleForIntThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + object other = new SimpleForInt(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + SimpleForInt subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs new file mode 100644 index 0000000..c5e96af --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenEqualsWithSimpleForIntIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenEqualsWithSimpleForIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..8c3446c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenGetHashCodeIsCalled +{ + private const int FirstValue = 5; + private const int SecondValue = 9; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForInt first = new(FirstValue); + SimpleForInt second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForInt first = new(FirstValue); + SimpleForInt second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs new file mode 100644 index 0000000..b26ce38 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenImplicitOperatorFromIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForInt result = SampleValue; + + // Act + int actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs new file mode 100644 index 0000000..5a6fdd7 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenImplicitOperatorToIntIsCalled +{ + private const int SampleValue = 42; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + int actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs new file mode 100644 index 0000000..5a8556e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenInequalityOperatorWithIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForInt? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs new file mode 100644 index 0000000..a0a0a8c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenInequalityOperatorWithSimpleForIntIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenInequalityOperatorWithSimpleForIntIsCalled +{ + private const int DifferentValue = 84; + private const int SampleValue = 42; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForInt left = new(SampleValue); + SimpleForInt right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..71b6926 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForIntTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Simple.SimpleForIntTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = "SimpleForInt { 42 }"; + private const int SampleValue = 42; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + SimpleForInt subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..e7884e6 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenConstructorIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenConstructorIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForString instance = new(SampleValue); + + // Act + string actual = instance; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs new file mode 100644 index 0000000..301305f --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs @@ -0,0 +1,63 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenEqualityOperatorWithSimpleForStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForString? left = default; + SimpleForString? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForString? left = default; + SimpleForString right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(SampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(DifferentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..ac03d32 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenEqualityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForString? subject = default; + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject == SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject == DifferentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..7b4c5b8 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,47 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenEqualsWithObjectIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentSimpleForStringThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + object other = new SimpleForString(SampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + SimpleForString subject = new(SampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs new file mode 100644 index 0000000..dce9e5b --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithSimpleForStringIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenEqualsWithSimpleForStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(SampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(DifferentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs new file mode 100644 index 0000000..1c09a8b --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualsWithStringIsCalled.cs @@ -0,0 +1,33 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenEqualsWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject.Equals(SampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject.Equals(DifferentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..3436c4b --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenGetHashCodeIsCalled +{ + private const string FirstValue = "Alpha"; + private const string SecondValue = "Beta"; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForString first = new(FirstValue); + SimpleForString second = new(FirstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForString first = new(FirstValue); + SimpleForString second = new(SecondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs new file mode 100644 index 0000000..eda7e06 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenImplicitOperatorFromStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForString result = SampleValue; + + // Act + string actual = result; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs new file mode 100644 index 0000000..52101f7 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -0,0 +1,19 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenImplicitOperatorToStringIsCalled +{ + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + string actual = subject; + + // Assert + actual.ShouldBe(SampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs new file mode 100644 index 0000000..90061b2 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenInequalityOperatorWithSimpleForStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(SampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForString left = new(SampleValue); + SimpleForString right = new(DifferentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs new file mode 100644 index 0000000..b61ca2d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -0,0 +1,46 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenInequalityOperatorWithStringIsCalled +{ + private const string SampleValue = "Sample"; + private const string DifferentValue = "Different"; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForString? subject = default; + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject != SampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + bool actual = subject != DifferentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..ea8808a --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenToStringIsCalled.cs @@ -0,0 +1,20 @@ +namespace Monify.Console.Structs.Simple.SimpleForStringTests; + +public static class WhenToStringIsCalled +{ + private const string Expected = $"SimpleForString {{ {SampleValue} }}"; + private const string SampleValue = "Sample"; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + SimpleForString subject = new(SampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InClass.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InClass.Expected.cs index b609758..0b3d504 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InClass.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InClass.Expected.cs @@ -397,7 +397,7 @@ sealed partial class Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InInterface.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InInterface.Expected.cs index edde3ec..25320d2 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InInterface.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InInterface.Expected.cs @@ -397,7 +397,7 @@ sealed partial class Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecord.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecord.Expected.cs index b04355f..088b248 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecord.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecord.Expected.cs @@ -397,7 +397,7 @@ sealed partial class Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecordStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecordStruct.Expected.cs index bc569de..d0806ca 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecordStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InRecordStruct.Expected.cs @@ -397,7 +397,7 @@ sealed partial class Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InStruct.Expected.cs index f26e832..e757d39 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Nested.InStruct.Expected.cs @@ -397,7 +397,7 @@ sealed partial class Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Classes/Simple.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Classes/Simple.Expected.cs index 28f9012..69c4406 100644 --- a/src/Monify.Tests/Snippets/Declarations/Classes/Simple.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Classes/Simple.Expected.cs @@ -357,7 +357,7 @@ sealed partial class Simple { public override string ToString() { - return string.Format("Simple { {0} }", _value); + return string.Format("Simple {{ {0} }}", _value); } } diff --git a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InClass.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InClass.Expected.cs index 0be192b..60aa21d 100644 --- a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InClass.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InClass.Expected.cs @@ -397,7 +397,7 @@ sealed partial record Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InInterface.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InInterface.Expected.cs index 809a49e..e6ec599 100644 --- a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InInterface.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InInterface.Expected.cs @@ -397,7 +397,7 @@ sealed partial record Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecord.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecord.Expected.cs index b2fded0..d462494 100644 --- a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecord.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecord.Expected.cs @@ -397,7 +397,7 @@ sealed partial record Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecordStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecordStruct.Expected.cs index cc486d7..355fbef 100644 --- a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecordStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InRecordStruct.Expected.cs @@ -397,7 +397,7 @@ sealed partial record Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InStruct.Expected.cs index 90be44f..4ccce13 100644 --- a/src/Monify.Tests/Snippets/Declarations/Records/Nested.InStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Records/Nested.InStruct.Expected.cs @@ -397,7 +397,7 @@ sealed partial record Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InClass.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InClass.Expected.cs index 7bb90ca..5e80f4c 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InClass.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InClass.Expected.cs @@ -397,7 +397,7 @@ readonly partial struct Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InInterface.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InInterface.Expected.cs index 0ac032d..ac76da1 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InInterface.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InInterface.Expected.cs @@ -397,7 +397,7 @@ readonly partial struct Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecord.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecord.Expected.cs index a54a962..3f3917c 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecord.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecord.Expected.cs @@ -397,7 +397,7 @@ readonly partial struct Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecordStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecordStruct.Expected.cs index a01fafd..1c9b501 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecordStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InRecordStruct.Expected.cs @@ -397,7 +397,7 @@ readonly partial struct Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InStruct.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InStruct.Expected.cs index a0fe201..b943108 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InStruct.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Nested.InStruct.Expected.cs @@ -397,7 +397,7 @@ readonly partial struct Inner { public override string ToString() { - return string.Format("Inner { {0} }", _value); + return string.Format("Inner {{ {0} }}", _value); } } } diff --git a/src/Monify.Tests/Snippets/Declarations/Structs/Simple.Expected.cs b/src/Monify.Tests/Snippets/Declarations/Structs/Simple.Expected.cs index f165a45..5432154 100644 --- a/src/Monify.Tests/Snippets/Declarations/Structs/Simple.Expected.cs +++ b/src/Monify.Tests/Snippets/Declarations/Structs/Simple.Expected.cs @@ -357,7 +357,7 @@ partial struct Simple { public override string ToString() { - return string.Format("Simple { {0} }", _value); + return string.Format("Simple {{ {0} }}", _value); } } diff --git a/src/Monify/Model/Subject.cs b/src/Monify/Model/Subject.cs index 9e98366..7e26ab7 100644 --- a/src/Monify/Model/Subject.cs +++ b/src/Monify/Model/Subject.cs @@ -146,6 +146,14 @@ internal sealed partial class Subject /// public bool IsGlobal => string.IsNullOrEmpty(Namespace); + /// + /// Gets or sets a value indicating whether or not the encapsulated type is deemed to be a sequence. + /// + /// + /// The value indicating whether or not the encapsulated type is deemed to be a sequence. + /// + public bool IsSequence { get; set; } + /// /// Gets or sets the name of the subject. /// diff --git a/src/Monify/Semantics/INamedTypeSymbolExtensions.ToSubject.cs b/src/Monify/Semantics/INamedTypeSymbolExtensions.ToSubject.cs index 3c1638c..e4a5e29 100644 --- a/src/Monify/Semantics/INamedTypeSymbolExtensions.ToSubject.cs +++ b/src/Monify/Semantics/INamedTypeSymbolExtensions.ToSubject.cs @@ -64,6 +64,7 @@ internal static partial class INamedTypeSymbolExtensions HasInequalityOperatorForValue = subject.HasInequalityOperator(type: value), IsEquatableToSelf = subject.IsEquatable(compilation), IsEquatableToValue = subject.IsEquatable(compilation, type: value), + IsSequence = value.IsSequence(), Name = subject.Name, Namespace = @namespace, Nesting = nesting, diff --git a/src/Monify/Semantics/ISymbolExtensions.IsAttribute.cs b/src/Monify/Semantics/ISymbolExtensions.IsAttribute.cs index bf9e660..f004510 100644 --- a/src/Monify/Semantics/ISymbolExtensions.IsAttribute.cs +++ b/src/Monify/Semantics/ISymbolExtensions.IsAttribute.cs @@ -7,11 +7,11 @@ /// internal static partial class ISymbolExtensions { - private static readonly SymbolDisplayFormat fullyQualifiedFormat = new( + private static readonly SymbolDisplayFormat _fullyQualifiedFormat = new( typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameAndContainingTypesAndNamespaces, genericsOptions: SymbolDisplayGenericsOptions.None); - private static readonly SymbolDisplayFormat minimallyQualifiedFormat = new( + private static readonly SymbolDisplayFormat _minimallyQualifiedFormat = new( typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameOnly, genericsOptions: SymbolDisplayGenericsOptions.None); @@ -35,12 +35,12 @@ public static bool IsAttribute(this ISymbol? subject, string name) bool IsGlobal() { - return subject.ContainingNamespace.IsGlobalNamespace && subject.ToDisplayString(minimallyQualifiedFormat) == name; + return subject.ContainingNamespace.IsGlobalNamespace && subject.ToDisplayString(_minimallyQualifiedFormat) == name; } bool IsQualified() { - string name = subject.ToDisplayString(fullyQualifiedFormat); + string name = subject.ToDisplayString(_fullyQualifiedFormat); return name == qualifiedName || name == fullyQualifiedName || name == globalQualifiedName; } diff --git a/src/Monify/Semantics/ITypeSymbolExtensions.IsSequence.cs b/src/Monify/Semantics/ITypeSymbolExtensions.IsSequence.cs new file mode 100644 index 0000000..bd5ca52 --- /dev/null +++ b/src/Monify/Semantics/ITypeSymbolExtensions.IsSequence.cs @@ -0,0 +1,25 @@ +namespace Monify.Semantics; + +using Microsoft.CodeAnalysis; + +/// +/// Provides extensions relating to . +/// +internal static class ITypeSymbolExtensions +{ + /// + /// Determines whether or not the represents a sequence. + /// + /// The type to check. + /// if the represents a sequence, otherwise . + public static bool IsSequence(this ITypeSymbol type) + { + static bool IsEnumerable(INamedTypeSymbol @interface) + { + return @interface.OriginalDefinition.SpecialType == SpecialType.System_Collections_Generic_IEnumerable_T + || @interface.SpecialType == SpecialType.System_Collections_IEnumerable; + } + + return type.SpecialType != SpecialType.System_String && (type is IArrayTypeSymbol || type.AllInterfaces.Any(IsEnumerable)); + } +} \ No newline at end of file diff --git a/src/Monify/Strategies/ToStringStrategy.cs b/src/Monify/Strategies/ToStringStrategy.cs index bbfc16a..45b32af 100644 --- a/src/Monify/Strategies/ToStringStrategy.cs +++ b/src/Monify/Strategies/ToStringStrategy.cs @@ -16,12 +16,12 @@ public IEnumerable Generate(Subject subject) yield break; } - string code = $$""" - {{subject.Declaration}} {{subject.Qualification}} + string code = $$$""" + {{{subject.Declaration}}} {{{subject.Qualification}}} { public override string ToString() { - return string.Format("{{subject.Name}} { {0} }", {{FieldStrategy.Name}}); + return string.Format("{{{subject.Name}}} {{ {0} }}", {{{FieldStrategy.Name}}}); } } """; diff --git a/src/Monify/TypeGenerator.cs b/src/Monify/TypeGenerator.cs index 6f30648..2d3a1ab 100644 --- a/src/Monify/TypeGenerator.cs +++ b/src/Monify/TypeGenerator.cs @@ -13,7 +13,7 @@ public sealed class TypeGenerator : IIncrementalGenerator { - private static readonly IStrategy[] strategies = new IStrategy[] + private static readonly IStrategy[] _strategies = new IStrategy[] { new ConstructorStrategy(), new ConvertFromStrategy(), @@ -29,7 +29,7 @@ public sealed class TypeGenerator subject => subject.Qualification), new EquatableStrategy( subject => !subject.IsEquatableToValue, - subject => $"global::System.Collections.Generic.EqualityComparer<{subject.Value}>.Default.Equals({FieldStrategy.Name}, other)", + GetEqualityOperator, subject => !subject.HasEquatableForValue, "Value", subject => subject.Value), @@ -64,7 +64,7 @@ private static void Generate(SourceProductionContext context, Subject? subject) Dictionary files = new(); #endif - foreach (IStrategy strategy in strategies) + foreach (IStrategy strategy in _strategies) { IEnumerable sources = strategy.Generate(subject); @@ -83,6 +83,16 @@ private static void Generate(SourceProductionContext context, Subject? subject) } } + private static string GetEqualityOperator(Subject subject) + { + if (subject.IsSequence) + { + return $"global::Monify.Internal.SequenceEqualityComparer.Default.Equals({FieldStrategy.Name}, other)"; + } + + return $"global::System.Collections.Generic.EqualityComparer<{subject.Value}>.Default.Equals({FieldStrategy.Name}, other)"; + } + private static string GetHint(Source source, Subject subject) { string name = subject.Name; From e873cb4d212623c3490ce0ab52f24658d002da84 Mon Sep 17 00:00:00 2001 From: Paul Martins <50200071+MooVC@users.noreply.github.com> Date: Fri, 31 Oct 2025 17:57:59 +0000 Subject: [PATCH 6/9] Add equivalent string operator tests across ForString suites (#25) * Add ForString operator tests for equivalent strings * Applied suggestions --- ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithIOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithIOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...yOperatorWithIOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...yOperatorWithIOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...EqualityOperatorWithSimpleForArrayIsCalled.cs | 16 ++++++++++++++++ ...equalityOperatorWithSimpleForArrayIsCalled.cs | 16 ++++++++++++++++ ...qualityOperatorWithSimpleForStringIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...qualityOperatorWithSimpleForStringIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithIOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithIOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...yOperatorWithIOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...yOperatorWithIOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...EqualityOperatorWithSimpleForArrayIsCalled.cs | 16 ++++++++++++++++ ...equalityOperatorWithSimpleForArrayIsCalled.cs | 16 ++++++++++++++++ ...qualityOperatorWithSimpleForStringIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...qualityOperatorWithSimpleForStringIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithIOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithIOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...yOperatorWithIOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...yOperatorWithIOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...ityOperatorWithOutterForArrayInnerIsCalled.cs | 16 ++++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...tyOperatorWithOutterForStringInnerIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...EqualityOperatorWithSimpleForArrayIsCalled.cs | 16 ++++++++++++++++ ...equalityOperatorWithSimpleForArrayIsCalled.cs | 16 ++++++++++++++++ ...qualityOperatorWithSimpleForStringIsCalled.cs | 16 ++++++++++++++++ .../WhenEqualityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ ...qualityOperatorWithSimpleForStringIsCalled.cs | 16 ++++++++++++++++ .../WhenInequalityOperatorWithStringIsCalled.cs | 15 +++++++++++++++ 108 files changed, 1692 insertions(+) diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 38010b4..f70b43a 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 7c784ff..718da1b 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 711ec60..0ddb777 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index 5eb9f80..e1d3385 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index f795216..fe2efed 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index a4bb004..ee26aca 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs index 5586f91..db04440 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + IOutterForArray.Inner left = new(leftValues); + IOutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs index 47530f3..e0581b8 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + IOutterForArray.Inner left = new(leftValues); + IOutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs index 1dd8c59..ff86dc6 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner left = new(leftValue); + IOutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index 5dd53a1..04c7b95 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs index c51d7aa..a80e8aa 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner left = new(leftValue); + IOutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index 1370419..ffb23a9 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 80c3a44..28b9db6 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 5d3d149..0a0f2c1 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 43b0192..90d374c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index 1082eb6..0606738 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 10dd2cd..c374954 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index 2d5156e..05b6cf3 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 6410ebf..d15f44f 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index b1e37e5..06a865a 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index c2f1a10..660b73d 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index 177a507..3ea812c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 5041676..9614155 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index 2e78713..2061d82 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index ec4b94e..a12f5ce 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 201b918..6f2ebd8 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 394b16d..8ae112d 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index 2c12d53..fe00589 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index b77e253..ee2fedb 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index 6c45ad0..57c4587 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs index de2188f..d5b488b 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + SimpleForArray left = new(leftValues); + SimpleForArray right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs index 2d856a3..5ab87e1 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + SimpleForArray left = new(leftValues); + SimpleForArray right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs index 8da71be..89a88a0 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + SimpleForString left = new(leftValue); + SimpleForString right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index 88f6e08..3860bb3 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + SimpleForString subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs index dad703d..0ef1770 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + SimpleForString left = new(leftValue); + SimpleForString right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index 6946d82..43d941e 100644 --- a/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + SimpleForString subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 6613df2..fd5f10e 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 127f7f2..24c2f9f 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 7ae4156..2f89f44 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index c5b79ec..034dcbd 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index ab0ab55..28493d1 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index c2ddc23..3bee6bc 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs index 9f4d305..749c493 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + IOutterForArray.Inner left = new(leftValues); + IOutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs index 24d831b..a85e597 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + IOutterForArray.Inner left = new(leftValues); + IOutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs index 0b19345..4cd021b 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner left = new(leftValue); + IOutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index 5d618f6..cd7557f 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs index 4f93b14..01679c6 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner left = new(leftValue); + IOutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index bed26ae..b3c4168 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 0ec2601..f30fde5 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 8603901..04fb3d4 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index bbcc5c1..809145d 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index be04c5f..aa05928 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index cd66cdf..7cf1ad6 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index d102d05..f5bb89f 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index b4952d6..08c04f5 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index f3de426..b091c2d 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 23743cb..05fcbd0 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index c109fa0..74d8cff 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 4ffa318..f76a9aa 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index 25d48d4..9530fc5 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index af9bef4..1a67001 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 5af43df..dc6c076 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 4bff482..e4df1c3 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index dbcaa22..0e1cdb8 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 15d7039..4237bf8 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index be88e00..cdf7676 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs index 1c7e33f..7979df8 100644 --- a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + SimpleForArray left = new(leftValues); + SimpleForArray right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs index c96365d..d915d9e 100644 --- a/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + SimpleForArray left = new(leftValues); + SimpleForArray right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs index c3da25d..052c2a2 100644 --- a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + SimpleForString left = new(leftValue); + SimpleForString right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index 681f458..9280426 100644 --- a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + SimpleForString subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs index 7833ea8..850447a 100644 --- a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + SimpleForString left = new(leftValue); + SimpleForString right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index b32138e..3b83ac4 100644 --- a/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + SimpleForString subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 4e54acd..12271d8 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index f919007..7e4a49a 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 7d092e3..b4febe2 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index e3f9b19..7750f68 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index db55729..8791f45 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index 1b378e4..8ceb7d6 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs index ceaf799..1878ecb 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + IOutterForArray.Inner left = new(leftValues); + IOutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs index c731d48..63e2a4d 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + IOutterForArray.Inner left = new(leftValues); + IOutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs index 6b01cd3..aaa9790 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner left = new(leftValue); + IOutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index adb0f36..d78e596 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs index 005ba1c..5ee1063 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner left = new(leftValue); + IOutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index de89eec..ec640b9 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + IOutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 330ab6a..53b1493 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index d5c206a..9f0b48a 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index aaa3c3f..7043cbd 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index 00c20ba..f93a510 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 7bc8fe3..cb740b2 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index 3e997e1..7b00429 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 6deeee9..0421871 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 0659efc..382524e 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 5b1ee73..32fed4b 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index b025a0a..b682f35 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 12803a3..26026dc 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index c331187..4b1961e 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index d4d22fc..2fcfc3d 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index b5e5bfa..5ef82cb 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + OutterForArray.Inner left = new(leftValues); + OutterForArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 4356e07..782fe51 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs index 9a5fbb7..411cff0 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index d5e5ddf..2653aec 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + OutterForString.Inner left = new(leftValue); + OutterForString.Inner right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs index 27bbbef..20ac1cc 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + OutterForString.Inner subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs index 0197492..dd41b11 100644 --- a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenEqualityOperatorWithSimpleForArrayIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + SimpleForArray left = new(leftValues); + SimpleForArray right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs index 0a2bd8d..c32c75c 100644 --- a/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForArrayTests/WhenInequalityOperatorWithSimpleForArrayIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + int[] leftValues = [1, 2, 3]; + int[] rightValues = [1, 2, 3]; + SimpleForArray left = new(leftValues); + SimpleForArray right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs index 301305f..d1e4079 100644 --- a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithSimpleForStringIsCalled.cs @@ -47,6 +47,22 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + SimpleForString left = new(leftValue); + SimpleForString right = new(rightValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValuesThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index ac03d32..df85279 100644 --- a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnTrue() actual.ShouldBeTrue(); } + [Fact] + public static void GivenEquivalentValueThenReturnTrue() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + SimpleForString subject = new(subjectValue); + + // Act + bool actual = subject == comparisonValue; + + // Assert + actual.ShouldBeTrue(); + } + [Fact] public static void GivenDifferentValueThenReturnFalse() { diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs index 90061b2..b155cec 100644 --- a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithSimpleForStringIsCalled.cs @@ -19,6 +19,22 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + string leftValue = new(SampleValue.ToCharArray()); + string rightValue = new(SampleValue.ToCharArray()); + SimpleForString left = new(leftValue); + SimpleForString right = new(rightValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValuesThenReturnTrue() { diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index b61ca2d..604d7ed 100644 --- a/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -31,6 +31,21 @@ public static void GivenSameValueThenReturnFalse() actual.ShouldBeFalse(); } + [Fact] + public static void GivenEquivalentValueThenReturnFalse() + { + // Arrange + string subjectValue = new(SampleValue.ToCharArray()); + string comparisonValue = new(SampleValue.ToCharArray()); + SimpleForString subject = new(subjectValue); + + // Act + bool actual = subject != comparisonValue; + + // Assert + actual.ShouldBeFalse(); + } + [Fact] public static void GivenDifferentValueThenReturnTrue() { From 4f6f2dc0e15259e57e0ae910431b935d6dd65506 Mon Sep 17 00:00:00 2001 From: Paul Martins <50200071+MooVC@users.noreply.github.com> Date: Fri, 31 Oct 2025 19:00:24 +0000 Subject: [PATCH 7/9] Flatten nested console test InnerTests folders (#26) * Flatten nested console test InnerTests directories * Remove trailing newlines from nested console tests --- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualsWithIOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualsWithIOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../IOutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../WhenEqualsWithIOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualsWithIOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualsWithIOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../IOutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../WhenEqualsWithIOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualsWithIOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualsWithIOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../IOutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../WhenEqualsWithIOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../WhenImplicitOperatorFromIntArrayIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithIntArrayIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs | 2 +- .../{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs | 2 +- .../OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenConstructorIsCalled.cs | 2 +- .../WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithObjectIsCalled.cs | 2 +- .../WhenEqualsWithOutterForStringInnerIsCalled.cs | 2 +- .../{InnerTests => }/WhenEqualsWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenGetHashCodeIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs | 2 +- .../WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs | 2 +- .../WhenInequalityOperatorWithStringIsCalled.cs | 2 +- .../{InnerTests => }/WhenToStringIsCalled.cs | 2 +- 540 files changed, 540 insertions(+), 540 deletions(-) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualsWithIOutterForArrayInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualsWithIOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualsWithIOutterForStringInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (94%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (94%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualsWithIOutterForArrayInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualsWithIOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualsWithIOutterForStringInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (94%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (94%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (94%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualsWithIOutterForArrayInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualsWithIOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualsWithIOutterForStringInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (94%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (94%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (94%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithIntArrayIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenEqualsWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorFromIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenImplicitOperatorToIntArrayIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithIntArrayIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenConstructorIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenEqualsWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorFromIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenImplicitOperatorToIntIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithIntIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenConstructorIsCalled.cs (95%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs (99%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithObjectIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenEqualsWithStringIsCalled.cs (97%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenGetHashCodeIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorFromStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenImplicitOperatorToStringIsCalled.cs (96%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenInequalityOperatorWithStringIsCalled.cs (98%) rename src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/{InnerTests => }/WhenToStringIsCalled.cs (96%) diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenConstructorIsCalled.cs index 4013db0..1ed460c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index 68f1b94..222798d 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index f70b43a..7ed83b4 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 179e8e7..d45414e 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index 265b9d3..9804cc9 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index 02aa82b..25910c2 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index b99f254..0775045 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index 7ebcda0..0917c5e 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 139a577..e894fbf 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index 35bc3d4..3a31d4a 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 718da1b..8e3d20f 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenToStringIsCalled.cs index da96198..eaef174 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenConstructorIsCalled.cs index 9994343..671b353 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index 94df7f3..084b1aa 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index ff575ca..85d8a4c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index 6c28f44..1145d64 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index fc04672..13a34dc 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index eeefec9..4808519 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenGetHashCodeIsCalled.cs index f9ea02a..c6d95f3 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index f000a07..8d82f86 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index af030ea..ac6854c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index 8a5e808..8a60df0 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index dc516fb..f7083f6 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenToStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenToStringIsCalled.cs index 4ca6fb8..5313eb1 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenConstructorIsCalled.cs index 75c0690..681675d 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 0ddb777..89f7f1c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index e1d3385..9d0d4c9 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index 95fba45..bd5f698 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index 4153265..dbb1ded 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index 815590d..c2e740a 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenGetHashCodeIsCalled.cs index 351f276..b59b59f 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index 8dd9aa7..62ae177 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index ddfa059..65f1892 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index fe2efed..ef6fa3c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index ee26aca..cd220fd 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenToStringIsCalled.cs index 3db4579..a997572 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InClass.OutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenConstructorIsCalled.cs index db29dcf..b12a038 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs index db04440..24b9d8c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualityOperatorWithIOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index dc3b71b..863552b 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs index 7352bda..53801b0 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualsWithIOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index bd0efc2..9d9125b 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index 9b38db1..ce5338d 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenGetHashCodeIsCalled.cs index 630356f..3fd0260 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index a2396a7..12edef7 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 6e1a2af..51e0ee8 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs index e0581b8..983ec05 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenInequalityOperatorWithIOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index 3fe0d74..36cd5c2 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenToStringIsCalled.cs index d5e4a6f..ce5b910 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenConstructorIsCalled.cs index aeaac01..4511330 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs index 8bf48b9..bef600b 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenEqualityOperatorWithIOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index 22b819e..50ed275 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs index dc5e2b1..e34ff93 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenEqualsWithIOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIntIsCalled.cs index 258c1f9..ba2c9a5 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualsWithObjectIsCalled.cs index 895828e..d8c15c6 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenGetHashCodeIsCalled.cs index b5c41c3..fd6691c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index fd137f9..0307431 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index 75df0df..9ca7e47 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs index fa28392..be0ba99 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenInequalityOperatorWithIOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index efd89d4..9ab2a2b 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenToStringIsCalled.cs index 3f39b87..b98bf41 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenConstructorIsCalled.cs index 9a353f2..48171fc 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs index ff86dc6..e3614e1 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenEqualityOperatorWithIOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index 04c7b95..822e15f 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs index 2873bd1..0aa53a8 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenEqualsWithIOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualsWithObjectIsCalled.cs index def40d9..26c36ad 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualsWithStringIsCalled.cs index 758affa..483e1b5 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenGetHashCodeIsCalled.cs index da26ec1..b128128 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index d834dfb..5c5665d 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index 931ef44..ae01030 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs index a80e8aa..c2e1c97 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenInequalityOperatorWithIOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index ffb23a9..3085da2 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenToStringIsCalled.cs index 9400901..ef0c606 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InInterface.IOutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenConstructorIsCalled.cs index 2b40d88..139432e 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index b3e48a8..c34c94d 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 28b9db6..12a83ad 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 2483409..e6fe1b0 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index edc6324..bb2b733 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index bd4369c..b8bc837 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index bbc12d1..54c357e 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index efe939c..e1c18e7 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index a6f7698..e38b4d3 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index 0842dee..8b56711 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 0a0f2c1..d17796c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenToStringIsCalled.cs index 467ace2..666180b 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenConstructorIsCalled.cs index af978f9..7a0b5be 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index 7c40a36..7bd9f95 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index a9cc255..e4ce0f4 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index 7156b8c..24340a9 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index fa4d6b8..fa9bfab 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index 3d454dd..459d986 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenGetHashCodeIsCalled.cs index dba8c77..a0112a2 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index 358e331..227582f 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index dc6ec60..5667147 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index 0d8d0f4..eb8ae27 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index 5174329..e39f15f 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenToStringIsCalled.cs index 2080306..ec82150 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenConstructorIsCalled.cs index 04049d8..4a9cf4f 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 90d374c..a0a6255 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index 0606738..b39fb73 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index ce307c6..fc10917 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index 43cb2fe..318260b 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index aa05d4a..2dd8ea3 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenGetHashCodeIsCalled.cs index 0069e02..2409d4f 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index 97c1964..7048edf 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index 4f98de8..a2553be 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index c374954..209103d 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index 05b6cf3..ae2afae 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenToStringIsCalled.cs index 773cdb6..d9257fd 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecord.OutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenConstructorIsCalled.cs index e43d707..a43dabc 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index 9d7bcd0..ffa5fb8 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index d15f44f..422eca5 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index a9d097b..fbcfc4d 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index 066d9f6..886091f 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index 6c29fc5..b069c15 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index f1c40a1..aa334ab 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index af0c15d..8fe2528 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index adf8961..df6d944 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index 2b82276..a3eb37b 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 06a865a..468b755 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenToStringIsCalled.cs index 5cfae1b..9842d19 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenConstructorIsCalled.cs index f707c95..c0d02a1 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index 9993c11..2b149de 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index 50a7ce1..c420d7a 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index 660487f..80ea8b2 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index 35a7a58..a21c0fa 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index 603539a..c151f8e 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs index ffdd74e..7669d47 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index 57aebd2..67257ad 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index 98dad76..4bf988c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index 89d8131..061c5c4 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index d8a9ea8..3ea6dd1 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenToStringIsCalled.cs index d24947f..c2fbca9 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 94% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenConstructorIsCalled.cs index 4cdad6a..80d18b7 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 660b73d..217a8e7 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index 3ea812c..5dd325c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index 69e0e98..53cee1d 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index d8e03b9..341e4db 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index 0b4c724..a9828af 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs index 08a1ac9..fdffe10 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 94% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index 99ee5a7..c3720c7 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index 0ff4e00..d1c4b0f 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 9614155..fd65973 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index 2061d82..88a8562 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenToStringIsCalled.cs index 72b0122..f27be4c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenConstructorIsCalled.cs index da2d0f4..b17838a 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index ba6991b..441fd79 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index a12f5ce..3ddf8a6 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 54b46e4..23eff74 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index 5fb9ad7..c92b222 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index e4f3385..cce3bc4 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index b8bdd30..ef6835e 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index affa79b..8bb1489 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 022106d..f4171c5 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index 5cd6430..f2c381c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 6f2ebd8..bc4e3ca 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenToStringIsCalled.cs index f9a4719..605e90c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenConstructorIsCalled.cs index 0635ab3..caab433 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index 2cd1402..6adbf30 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index 30b12ce..cf649d3 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index 091f82d..2492a3f 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index 7d231b0..2c24702 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index 8aaecc4..523764c 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs index d86cded..fa0af97 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index 8cfcb02..7e8302a 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index 14e7572..be98734 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index bef40d6..7344d60 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index a0ff6cf..bc4f632 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenToStringIsCalled.cs index e8f31d9..2bda27a 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenConstructorIsCalled.cs index fe623e8..d2ad5fc 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 8ae112d..2774d00 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index fe00589..53194c6 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index aa87016..7e57eb7 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index 47b425d..54957c9 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index d1a7055..6a2feb5 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs index 02e5c50..1eea965 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index c71d874..f1db47a 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index a6df8c0..ecc2ef2 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index ee2fedb..967ac88 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index 57c4587..f0e04dc 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenToStringIsCalled.cs index 4687ca9..b8a7080 100644 --- a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Classes.Nested.InStruct.OutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenConstructorIsCalled.cs index e07fc3d..6c17b1f 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index 7b1faea..7b3c739 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index fd5f10e..1d2f532 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 5f65afe..725b78b 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index d01b44e..ff211a4 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index acc71f6..8945ab2 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index 8ab75d9..ddedc3a 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index dd18ba2..0294ea9 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 7000f18..4a37b41 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index d3296ea..e0e8b6c 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 24c2f9f..e456a0f 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenToStringIsCalled.cs index 21d81df..5bb1d5b 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenConstructorIsCalled.cs index b3e7df6..ad15ef0 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index acfcc6f..012a354 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index 2483b07..62d9574 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index 636c75e..f3bed8f 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index 3c8b6d5..c1a3bd9 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index 7122570..16be97b 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenGetHashCodeIsCalled.cs index 209b4db..df9baf8 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index dab146f..d90d4a1 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index 2791ca3..1c74126 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index 70a5c13..b338a4a 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index 34a4169..3b15445 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenToStringIsCalled.cs index c5f775d..c2b7385 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenConstructorIsCalled.cs index 359f93d..d6f9abd 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 2f89f44..841ff82 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index 034dcbd..196019b 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index 8bf79b9..17dd8d9 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index 9273761..4ceffeb 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index c6e9f96..c6cc8ca 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenGetHashCodeIsCalled.cs index c952794..9d84d93 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index 1c78b24..6ce709e 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index a903a21..9fa4803 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 28493d1..b076889 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index 3bee6bc..4829195 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenToStringIsCalled.cs index 1130488..0a3876d 100644 --- a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InClass.OutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenConstructorIsCalled.cs index 6473226..7fd9358 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs index 749c493..c470ebd 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualityOperatorWithIOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index 7740b0c..008b108 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs index 2433eba..a1323fc 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualsWithIOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 2dde2c8..c2c4d05 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index 305383c..d47ea93 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenGetHashCodeIsCalled.cs index 7a50981..4fa5eb4 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index b5591df..eb7ba2a 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 8ed5412..e28f40b 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs index a85e597..e95eb00 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenInequalityOperatorWithIOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index d43788c..d478bd8 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenToStringIsCalled.cs index a71e0b4..1c94238 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenConstructorIsCalled.cs index 35ce23f..ed612d8 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs index 38235f5..c18b8b9 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenEqualityOperatorWithIOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index fdd9206..b18037c 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs index 58f5397..faf4528 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenEqualsWithIOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIntIsCalled.cs index 6a3fc7f..309bf36 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualsWithObjectIsCalled.cs index aa142c6..038d2ce 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenGetHashCodeIsCalled.cs index bff2635..d51d927 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index 39fe3b2..198bc49 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index cad179f..3be47c1 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs index 6c1cbb7..6d1aa6d 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenInequalityOperatorWithIOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index 74fb2a8..0c60b7c 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenToStringIsCalled.cs index fb59a72..7a545b2 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenConstructorIsCalled.cs index c8bf8f5..976b42a 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs index 4cd021b..919acb3 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenEqualityOperatorWithIOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index cd7557f..59a51f0 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs index 4ce3014..5d075a2 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenEqualsWithIOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualsWithObjectIsCalled.cs index 7ca96f5..8b2466e 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualsWithStringIsCalled.cs index d6e8e5c..a33b297 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenGetHashCodeIsCalled.cs index 4082efb..7c19bb9 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index 3f35fcb..711bce0 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index f6cd281..28f7f52 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs index 01679c6..f29b0ef 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenInequalityOperatorWithIOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index b3c4168..333477d 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenToStringIsCalled.cs index abe9140..bf6d7c6 100644 --- a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InInterface.IOutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenConstructorIsCalled.cs index 28c0a10..c493da8 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index e220c44..e6cd0ce 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index f30fde5..4b702cc 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 7ae2270..8ad4f74 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index c641cd5..35aaeeb 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index 780c95b..c66b0eb 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index ff94a4a..1a4534e 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index 1cfaeda..b51fe74 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 0f8e9a5..d12d6db 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index 3d8db6f..f58a433 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 04fb3d4..5a7796d 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenToStringIsCalled.cs index b5f9b87..6a7395f 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenConstructorIsCalled.cs index 776e83b..acb2cca 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index 58ac849..9560cdf 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index 0faa8d6..fee0040 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index 70c74ff..84a26f9 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index d23a119..9371b2c 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index 74ac333..dfaf2b8 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenGetHashCodeIsCalled.cs index 9a20a2e..a6a73b6 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index 09cee1f..9d89192 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index faf21e6..705d712 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index 69506bc..3ef1df4 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index d0e5a87..7414374 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenToStringIsCalled.cs index ddefa09..bed3007 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenConstructorIsCalled.cs index 2a5895b..0887f1b 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 809145d..355881c 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index aa05928..c0ce4d0 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index fc2d643..a90b93c 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index 14f42f2..a8c4b77 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index 4557b3c..575cadc 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenGetHashCodeIsCalled.cs index fc1a754..cfaa56f 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index 1a1ab61..5c80f96 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index 3a27da5..d11e51a 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 7cf1ad6..fb9f1dd 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index f5bb89f..e094102 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenToStringIsCalled.cs index 7d55327..c5ca5b7 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecord.OutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenConstructorIsCalled.cs index 6b17d37..404da34 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index 0283ce8..b999020 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 08c04f5..9dd1a0e 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index a21ae1b..10acab5 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index 53b055c..77ab582 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index 8046333..0684356 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index d4fe9f4..49cdc02 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index e1bf6ec..7b2b1c9 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 91ea60a..969c2e2 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index 0c615e9..111c951 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index b091c2d..bdce581 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenToStringIsCalled.cs index fccc5f8..fbfb6eb 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenConstructorIsCalled.cs index 26a7271..16d5257 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index 6ef252d..723cfe5 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index b7a012f..aa6040d 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index b6ba974..20023a3 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index c3339bf..84ba7e6 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index 9ff153a..1193a28 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs index 2de2f3b..a1a626c 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index 3e811a5..6ce3916 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index 74e6c1a..754c014 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index fcb75dc..9147376 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index 5446785..0246bf7 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenToStringIsCalled.cs index 8ce5241..614da8e 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 94% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenConstructorIsCalled.cs index 1d91e6c..c683829 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 05fcbd0..7e001e8 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index 74d8cff..1b5930c 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index 7a286f2..cb2d7d6 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index 0389dbc..a7dfbee 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index 7dca359..04c5ad9 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs index 2d5f6d6..c863f43 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 94% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index dae94da..bb90141 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index e62b634..c46a38b 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index f76a9aa..13ac0cf 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index 9530fc5..cd49f12 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenToStringIsCalled.cs similarity index 94% rename from src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenToStringIsCalled.cs index 63edc3d..bcb2492 100644 --- a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenConstructorIsCalled.cs index bb23a1b..324ab01 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index c8890f6..70497b3 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 1a67001..7e04409 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 63f6052..be0c741 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index 2019cc0..3a3fcdc 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index 5a5ab0a..177b68f 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index 76ba9c7..b082456 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index b32a647..5091c58 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 40d8bee..b82cb37 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index a06e654..64f1e9d 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index dc6c076..52428bd 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenToStringIsCalled.cs index a690380..1ebdad4 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenConstructorIsCalled.cs index c8a238d..108f67a 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index 19a99c0..4cc3da8 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index 4317fd2..b948668 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index 0da6d59..5d9e716 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index d5b181c..0ec92c6 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index 58e7eb0..fd278ac 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs index da46448..619a2ed 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index 88dd7a8..87602e8 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index 438bae8..b748e7f 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index bb31bb4..276a333 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index 97a9574..65cb417 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenToStringIsCalled.cs index 6019726..85e8f85 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenConstructorIsCalled.cs index cc8eeed..619eb3d 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index e4df1c3..1d1e17a 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index 0e1cdb8..3a93ad5 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index daf8f67..496c56b 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index 10cf7c6..b96967f 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index 1756340..5af86ce 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs index 94c1523..0063eb1 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index 12e3e7d..5656830 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index fb802f9..6c90fdd 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 4237bf8..cfba7f0 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index cdf7676..18e1f40 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenToStringIsCalled.cs index 4295448..8d27e86 100644 --- a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Records.Nested.InStruct.OutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenConstructorIsCalled.cs index 4c087ec..7036c74 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index de2cbab..e265a08 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 12271d8..adca9fa 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 812aef2..9088770 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index 268c28d..d5b2799 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index 9e7e353..bd7caae 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index d6e1ca6..d81a1ab 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index 66a7536..8f9a42e 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 74fbd36..6ce9f36 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index bd1b317..af98cd8 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 7e4a49a..e074418 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenToStringIsCalled.cs index 0bfb647..142e7c3 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenConstructorIsCalled.cs index 047d178..4bc9368 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index 964202e..edadf9e 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index 3a513e4..649262d 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index 43d462c..3682994 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index 9b53ce4..652bf4c 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index ab8a8cd..6f7162a 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenGetHashCodeIsCalled.cs index 28a8a8a..6a2d8ac 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index aa27b6c..c5a64a1 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index d6754a4..0ce30f2 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index 86a4418..0508265 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index 8e5d066..ad0ee27 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenToStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenToStringIsCalled.cs index b5b94da..0ef6b20 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenConstructorIsCalled.cs index c3aedbf..101075f 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index b4febe2..7ec3502 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index 7750f68..6507a06 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index 8dd6ac0..660610b 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index 2c60288..b3a48dd 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index b1a44c6..09c4da1 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenGetHashCodeIsCalled.cs index 3829ec0..c7fc878 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index 06d1bac..6c0d559 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index 55adaa0..db65970 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 8791f45..1639f13 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index 8ceb7d6..090cdae 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenToStringIsCalled.cs index 30b5bb8..fb572ad 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InClass.OutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenConstructorIsCalled.cs index 957163d..9cc4f43 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs index 1878ecb..71fedb7 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualityOperatorWithIOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index fdd9f1c..fc99706 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs index 852a4b5..1930e53 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualsWithIOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 937b0b4..79419bd 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index 149e0ac..d22b2c2 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenGetHashCodeIsCalled.cs index 2c13a63..1d13a10 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index 179a01d..7c2d36b 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 2d89b36..aadebee 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs index 63e2a4d..3127692 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenInequalityOperatorWithIOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index 8916528..ebee1fc 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenToStringIsCalled.cs index 512e591..1a30b78 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenConstructorIsCalled.cs index 9d43595..a063e56 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs index fc7da0e..92e54e2 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenEqualityOperatorWithIOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index 5dcda31..4e760d4 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs index f2e8d95..503cb2b 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenEqualsWithIOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIntIsCalled.cs index ec5d9b3..a4b2a59 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualsWithObjectIsCalled.cs index 9a853a0..ac3064b 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenGetHashCodeIsCalled.cs index 76a68e3..2bc6196 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index b1b8504..6df9779 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index 2424dc1..ec6fccc 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs index 47bc50d..b400708 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenInequalityOperatorWithIOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index 19d63a8..f8ee492 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenToStringIsCalled.cs index 401aa58..73ec601 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenConstructorIsCalled.cs index 82a8d24..71e2dbd 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs index aaa9790..4c145b0 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithIOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenEqualityOperatorWithIOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index d78e596..001a79d 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs index 6afc267..5c0893e 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualsWithIOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenEqualsWithIOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualsWithObjectIsCalled.cs index 83a75ec..4fa2c06 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualsWithStringIsCalled.cs index 7f40f80..cd7dc93 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenGetHashCodeIsCalled.cs index 2c829c2..7cc86f7 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index 72bcfa2..e1326c2 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index 9417ac8..877b02b 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs index 5ee1063..447aea9 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithIOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenInequalityOperatorWithIOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index ec640b9..52c4b1b 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenToStringIsCalled.cs index 8dc363b..5392a1c 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InInterface.IOutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenConstructorIsCalled.cs index 685b3f1..25b770a 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index 46b4376..5b311d0 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 53b1493..98850b5 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 676bd85..6b88ba1 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index d38ef74..be6dbc2 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index d9eb62c..f48163b 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index 31b6741..06c3b6d 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index 87dd862..6a41e99 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 1436569..f7c1d85 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index 9395098..923ff4a 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 9f0b48a..90c1061 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenToStringIsCalled.cs index 320bc66..01eb80c 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenConstructorIsCalled.cs index 72aff7e..d1da605 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index d44224d..f655c01 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index 970ce3d..becc2aa 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index bd56fa4..f17fad5 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index 2a1f6f8..d964d89 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index 8c1d0b7..a6a6c8a 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenGetHashCodeIsCalled.cs index 6d445f0..fc6d434 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index 794940d..f24c74b 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index 7e71347..ca00686 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index d48ae85..56ce674 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index d09575a..14e18cc 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenToStringIsCalled.cs index 5af58cb..ce6a056 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenConstructorIsCalled.cs index fa8d3e0..c929bfa 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 7043cbd..4aeb1bc 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index f93a510..82cc107 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index 1207dfe..d14cbff 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index fc94faf..d06b898 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index 595c618..bead3ee 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenGetHashCodeIsCalled.cs index 9712e65..565f75a 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index a4d8e62..6f1bbd5 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index eaaf8f5..c89aa23 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index cb740b2..65235c7 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index 7b00429..a54ce1d 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenToStringIsCalled.cs index e627b6d..34ca90a 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecord.OutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenConstructorIsCalled.cs index d4b1c87..e42827d 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index 3c711ee..730589c 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 0421871..6699bd9 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 8cfe647..278b551 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index 839ce9d..2e89927 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index 3721ef8..426a622 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index c29292f..09ebc0f 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index e3ae9ef..ba69e98 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index b4265d0..db0362d 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index 9b5506f..98b8733 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 382524e..2424036 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenToStringIsCalled.cs index 93f5164..695ea11 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenConstructorIsCalled.cs index e6ccc7d..da7eb32 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index b5df8e9..a2c5015 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index e1b25e2..b3115b0 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index 38f8117..0dfbe13 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index ab798ec..e61a913 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index 9ae6a48..d55c5e7 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs index dc7544b..685a967 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index e941552..0d05af0 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index 1906b93..7c6d8a1 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index 2ca6d86..ad93d51 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index ae7f9ab..dfafdfc 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenToStringIsCalled.cs index 9d3ea15..5335a21 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 94% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenConstructorIsCalled.cs index dac03f4..d0bbc39 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 32fed4b..af59c5b 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index b682f35..c7e5f54 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index dfd4da9..65de7fc 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index 4e84d77..b5fa84f 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index e0d3e08..b10656c 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs index 23766e9..edff7b7 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 94% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index f3aaa50..0392a56 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 94% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index 37b3613..a234e80 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 26026dc..eb43ae1 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index 4b1961e..ff883e9 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenToStringIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenToStringIsCalled.cs index 26cf28b..9aa23b3 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForStringTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenConstructorIsCalled.cs index 28ff4a5..871477c 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs index 005ffb9..86b3186 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs index 2fcfc3d..b9caf24 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenEqualityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs index 23fa17d..8eca845 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualsWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenEqualsWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs index 7168f05..4408fd8 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs index 0ac51c6..c1d2824 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenEqualsWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenEqualsWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs index b95ea35..5f30fc1 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs index 2bbb495..be19f3a 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorFromIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorFromIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenImplicitOperatorFromIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs index 8a62d6c..f398173 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenImplicitOperatorToIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenImplicitOperatorToIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenImplicitOperatorToIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs index 3ff898c..0ea40fe 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithIntArrayIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithIntArrayIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithIntArrayIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs index 5ef82cb..0374089 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenInequalityOperatorWithOutterForArrayInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenInequalityOperatorWithOutterForArrayInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenToStringIsCalled.cs index 8ecb142..d365672 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForArrayTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForArrayTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenConstructorIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenConstructorIsCalled.cs index d480490..2dedd44 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs index d5d26e9..5b0a6fb 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenEqualityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs index 535a0f2..d212560 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenEqualityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs index e1ae1ee..7200d90 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualsWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenEqualsWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs index 71d4148..7a42732 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs index 69ea5f1..09d2426 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenEqualsWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenEqualsWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenEqualsWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs index 6f858a3..97078cc 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs index c4860df..5f38214 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorFromIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorFromIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenImplicitOperatorFromIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs index 338894e..8768e8f 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenImplicitOperatorToIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenImplicitOperatorToIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenImplicitOperatorToIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs index c04c18f..c420828 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithIntIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithIntIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenInequalityOperatorWithIntIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs index 1b1b1f4..b1f9d25 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenInequalityOperatorWithOutterForIntInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenInequalityOperatorWithOutterForIntInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenToStringIsCalled.cs index e742f9c..695880c 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForIntTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForIntTests; public static class WhenToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenConstructorIsCalled.cs similarity index 95% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenConstructorIsCalled.cs index 6b1b911..546ba59 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenConstructorIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenConstructorIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenConstructorIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs similarity index 99% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs index 782fe51..dd41828 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenEqualityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs index 411cff0..ce1994f 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenEqualityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs index ec2c7b1..99693b9 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithObjectIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualsWithObjectIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenEqualsWithObjectIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs index c400784..ad4fec2 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualsWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenEqualsWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs similarity index 97% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs index 8bd63c6..21fad2f 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenEqualsWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenEqualsWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenEqualsWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs index 27a9815..7cc54a5 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenGetHashCodeIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenGetHashCodeIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenGetHashCodeIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs index 435819b..74ca011 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorFromStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorFromStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenImplicitOperatorFromStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs index 242d81e..242d1b2 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenImplicitOperatorToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenImplicitOperatorToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenImplicitOperatorToStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs index 2653aec..60248d7 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithOutterForStringInnerIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenInequalityOperatorWithOutterForStringInnerIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs similarity index 98% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs index 20ac1cc..7602b93 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenInequalityOperatorWithStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenInequalityOperatorWithStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenInequalityOperatorWithStringIsCalled { diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenToStringIsCalled.cs similarity index 96% rename from src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs rename to src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenToStringIsCalled.cs index 3ec40bc..2f37489 100644 --- a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/InnerTests/WhenToStringIsCalled.cs +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForStringTests/WhenToStringIsCalled.cs @@ -1,4 +1,4 @@ -namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests.InnerTests; +namespace Monify.Console.Structs.Nested.InStruct.OutterForStringTests; public static class WhenToStringIsCalled { From 1828886f097e2a2aa163234ca9e51e33677de80a Mon Sep 17 00:00:00 2001 From: Paul Martins <50200071+MooVC@users.noreply.github.com> Date: Fri, 31 Oct 2025 20:02:34 +0000 Subject: [PATCH 8/9] Use collection expressions in immutable array tests (#27) --- .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...thIOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...thIOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...thIOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...atorWithSimpleForImmutableArrayIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ualsWithSimpleForImmutableArrayIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...atorWithSimpleForImmutableArrayIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 21 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...thIOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...thIOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...thIOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ .../WhenToStringIsCalled.cs | 21 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 21 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 21 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 21 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...atorWithSimpleForImmutableArrayIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ualsWithSimpleForImmutableArrayIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 35 ++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...atorWithSimpleForImmutableArrayIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 21 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...thIOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...thIOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 21 +++++ ...thIOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...ithOutterForImmutableArrayInnerIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../WhenConstructorIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...atorWithSimpleForImmutableArrayIsCalled.cs | 81 +++++++++++++++++++ .../WhenEqualsWithImmutableArrayIsCalled.cs | 35 ++++++++ .../WhenEqualsWithObjectIsCalled.cs | 49 +++++++++++ ...ualsWithSimpleForImmutableArrayIsCalled.cs | 37 +++++++++ .../WhenGetHashCodeIsCalled.cs | 39 +++++++++ ...licitOperatorFromImmutableArrayIsCalled.cs | 21 +++++ ...mplicitOperatorToImmutableArrayIsCalled.cs | 21 +++++ ...alityOperatorWithImmutableArrayIsCalled.cs | 48 +++++++++++ ...atorWithSimpleForImmutableArrayIsCalled.cs | 53 ++++++++++++ .../WhenToStringIsCalled.cs | 22 +++++ .../InClass/OutterForImmutableArray.{T}.cs | 16 ++++ .../IOutterForImmutableArray.{T}.cs | 17 ++++ .../InRecord/OutterForImmutableArray.{T}.cs | 16 ++++ .../OutterForImmutableArray.{T}.cs | 16 ++++ .../InStruct/OutterForImmutableArray.{T}.cs | 17 ++++ .../Classes/Simple/SimpleForImmutableArray.cs | 9 +++ .../InClass/OutterForImmutableArray.{T}.cs | 16 ++++ .../IOutterForImmutableArray.{T}.cs | 17 ++++ .../InRecord/OutterForImmutableArray.{T}.cs | 16 ++++ .../OutterForImmutableArray.{T}.cs | 16 ++++ .../InStruct/OutterForImmutableArray.{T}.cs | 17 ++++ .../Records/Simple/SimpleForImmutableArray.cs | 9 +++ .../InClass/OutterForImmutableArray.{T}.cs | 16 ++++ .../IOutterForImmutableArray.{T}.cs | 17 ++++ .../InRecord/OutterForImmutableArray.{T}.cs | 16 ++++ .../OutterForImmutableArray.{T}.cs | 16 ++++ .../InStruct/OutterForImmutableArray.{T}.cs | 17 ++++ .../Structs/Simple/SimpleForImmutableArray.cs | 9 +++ 234 files changed, 8985 insertions(+) create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs create mode 100644 src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs create mode 100644 src/Monify.Console/Classes/Nested/InClass/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InInterface/IOutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InRecord/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Classes/Nested/InStruct/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Classes/Simple/SimpleForImmutableArray.cs create mode 100644 src/Monify.Console/Records/Nested/InClass/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InInterface/IOutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InRecord/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Records/Nested/InStruct/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Records/Simple/SimpleForImmutableArray.cs create mode 100644 src/Monify.Console/Structs/Nested/InClass/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InInterface/IOutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InRecord/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Structs/Nested/InStruct/OutterForImmutableArray.{T}.cs create mode 100644 src/Monify.Console/Structs/Simple/SimpleForImmutableArray.cs diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..659cdfb --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..20e7e01 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..8bfbeb7 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..7cfdd2b --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..4cad7b0 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..f98019b --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..a85bec1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..3e4992c --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..f82853d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..2911c13 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..e4fd170 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..0955260 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Classes.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"Inner {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..1774750 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..48f9a40 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner? left = default; + IOutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner? left = default; + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + IOutterForImmutableArray.Inner left = new(leftValues); + IOutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..d090c10 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..a0fed9e --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithIOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..66cb2b1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..d50c73d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentIOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new IOutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..bcec7ef --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForImmutableArray.Inner first = new(_firstValue); + IOutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForImmutableArray.Inner first = new(_firstValue); + IOutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..793c6fb --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..d6b34f2 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + IOutterForImmutableArray.Inner? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..52f7506 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + IOutterForImmutableArray.Inner left = new(leftValues); + IOutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..a32e292 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..388a178 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Classes.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"Inner {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..0b97681 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..0d4a74d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..190cc9a --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..62f4dc0 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..5388283 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..e0ced72 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..aed304e --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..1fd772b --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..9fe6447 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..f3d3cc5 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..743ff66 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..48e7cb5 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Classes.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"Inner {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..62e0967 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..d753513 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..c3d258a --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..04cbc01 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..2d56753 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..0898d8d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..cffc9b2 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..c997bff --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..aa2e908 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..b5f9882 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..84eb0e9 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..64933f1 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"Inner {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..608fe61 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..38ff15d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..32902a4 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..76877c5 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..69b9b68 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..7a8843d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..8504f6a --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..5a3a040 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..4863cc6 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..673648b --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..01ff34a --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..17b096c --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Classes.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"Inner {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..f2967bd --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForImmutableArray instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..d41f000 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForImmutableArray? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs new file mode 100644 index 0000000..f35d082 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForImmutableArray? left = default; + SimpleForImmutableArray? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForImmutableArray? left = default; + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + SimpleForImmutableArray left = new(leftValues); + SimpleForImmutableArray right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..d54764d --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..14ff91f --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentSimpleForImmutableArrayThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + object other = new SimpleForImmutableArray(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs new file mode 100644 index 0000000..84649f2 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithSimpleForImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..719b7cd --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForImmutableArray first = new(_firstValue); + SimpleForImmutableArray second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForImmutableArray first = new(_firstValue); + SimpleForImmutableArray second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..add0bfa --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForImmutableArray result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..a65e7e7 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + SimpleForImmutableArray? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..727c3ec --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForImmutableArray? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs new file mode 100644 index 0000000..47c5933 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + SimpleForImmutableArray left = new(leftValues); + SimpleForImmutableArray right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..aa13cf5 --- /dev/null +++ b/src/Monify.Console.Tests/Classes/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Classes.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"SimpleForImmutableArray {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..c3a9142 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..d86f269 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..6776909 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..5fadf36 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..7114cf5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..e9bec05 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..104d33a --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..d54883b --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..103589d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..451eae9 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..0f1b2d5 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..d480285 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..3f27c12 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..5e3d04a --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner? left = default; + IOutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner? left = default; + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + IOutterForImmutableArray.Inner left = new(leftValues); + IOutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..7136271 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..87b3fe3 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithIOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..bdd383b --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..fc3326e --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentIOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new IOutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..bc28806 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForImmutableArray.Inner first = new(_firstValue); + IOutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForImmutableArray.Inner first = new(_firstValue); + IOutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..313f5ae --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..94f5a0f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + IOutterForImmutableArray.Inner? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..2943598 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + IOutterForImmutableArray.Inner left = new(leftValues); + IOutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..559e8d6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..64a6343 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..68619ac --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..f0af24a --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..5de747f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..8d25817 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..71e5d55 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..d352eac --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..6f48636 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..41cf4c1 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..298f02c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..809a2d6 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..aae046f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..32929b0 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..9684e7a --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..949c679 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..51bc9d2 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..46b6bc8 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..d88bd10 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..b55028d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..ddf6968 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..b49095b --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..0e31e3d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..c6d9e57 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..071cd3c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..acda113 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..3569015 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..f7733be --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..9d6e018 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..bf21048 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..36d6809 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..37e40ce --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..ff6b073 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..d18c69f --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..4d99e76 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..eacc063 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..5639c9d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..aa73335 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("Inner { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..5e467b9 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForImmutableArray instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..2674122 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForImmutableArray? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs new file mode 100644 index 0000000..374fc87 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForImmutableArray? left = default; + SimpleForImmutableArray? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForImmutableArray? left = default; + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + SimpleForImmutableArray left = new(leftValues); + SimpleForImmutableArray right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..adf0500 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..7355267 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals((object?)default); + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentSimpleForImmutableArrayThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + object other = new SimpleForImmutableArray(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + object other = string.Empty; + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs new file mode 100644 index 0000000..8530147 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithSimpleForImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..bef51d2 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForImmutableArray first = new(_firstValue); + SimpleForImmutableArray second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForImmutableArray first = new(_firstValue); + SimpleForImmutableArray second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..9f810df --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForImmutableArray result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..8fbe2d1 --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullSubjectThenThrowsArgumentNullException() + { + // Arrange + SimpleForImmutableArray? subject = default; + + // Act + Action act = () => _ = (ImmutableArray)subject!; + + // Assert + ArgumentNullException exception = Should.Throw(act); + exception.ParamName.ShouldBe(nameof(subject)); + } + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..01cef4d --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForImmutableArray? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs new file mode 100644 index 0000000..338d8cd --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + SimpleForImmutableArray left = new(leftValues); + SimpleForImmutableArray right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..e26fc0c --- /dev/null +++ b/src/Monify.Console.Tests/Records/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Records.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnRecordDescription() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + string actual = subject.ToString(); + + // Assert + actual.ShouldBe("SimpleForImmutableArray { }"); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..62453dc --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..a576a79 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..59942d8 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..0ec3a20 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..2e00ee9 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..e847cfe --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..2c2738d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..7a9bffe --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..64378ef --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..4ef8f4a --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..683e400 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..9e02ccf --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InClass/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Structs.Nested.InClass.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"Inner {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..ec25ecd --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + IOutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..d58d223 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithIOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner? left = default; + IOutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner? left = default; + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + IOutterForImmutableArray.Inner left = new(leftValues); + IOutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..df0485b --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..b0a9926 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithIOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithIOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..b3db7ee --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..d0a0981 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentIOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new IOutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..311eb59 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + IOutterForImmutableArray.Inner first = new(_firstValue); + IOutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + IOutterForImmutableArray.Inner first = new(_firstValue); + IOutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..d1ca3d2 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + IOutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..eb2b035 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..9c623c7 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithIOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + IOutterForImmutableArray.Inner left = new(leftValues); + IOutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner left = new(_sampleValue); + IOutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..efe480f --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..6b2fbc6 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InInterface/IOutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Structs.Nested.InInterface.IOutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"Inner {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + IOutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..452ba4c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..81808a4 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..dadfa32 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..cb8c436 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..b81d861 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..2b8d92e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..f689dd0 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..307c84c --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..b7140e9 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..1d560e0 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..53ca4c7 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..7c04009 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecord/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Structs.Nested.InRecord.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"Inner {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..75391b5 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..ec42013 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..758e8a3 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..20a3e3e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..66fb046 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..8fbb353 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..e36d33e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..f74b84e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..229bb36 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..b30cfa0 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..6dbb068 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..fd51393 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InRecordStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"Inner {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..6f11b4d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + OutterForImmutableArray.Inner instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..9f33566 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..6a8b56a --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner? left = default; + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..0b5cb46 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..5a826df --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentOutterForImmutableArrayInnerThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = new OutterForImmutableArray.Inner(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..51da5f5 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenEqualsWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..dd3b21e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + OutterForImmutableArray.Inner first = new(_firstValue); + OutterForImmutableArray.Inner second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..edc1f7e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + OutterForImmutableArray.Inner result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..2da0e75 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..0e4fd8a --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs new file mode 100644 index 0000000..5c47b80 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithOutterForImmutableArrayInnerIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + OutterForImmutableArray.Inner left = new(leftValues); + OutterForImmutableArray.Inner right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + OutterForImmutableArray.Inner left = new(_sampleValue); + OutterForImmutableArray.Inner right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..25d4c1e --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Nested/InStruct/OutterForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Structs.Nested.InStruct.OutterForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"Inner {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + OutterForImmutableArray.Inner subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs new file mode 100644 index 0000000..86b2d20 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenConstructorIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenConstructorIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenValueIsStored() + { + // Arrange + SimpleForImmutableArray instance = new(_sampleValue); + + // Act + ImmutableArray actual = instance; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..54b25ed --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnFalse() + { + // Arrange + SimpleForImmutableArray? subject = default; + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject == _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject == _differentValue; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs new file mode 100644 index 0000000..c759638 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled.cs @@ -0,0 +1,81 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualityOperatorWithSimpleForImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenBothNullThenReturnTrue() + { + // Arrange + SimpleForImmutableArray? left = default; + SimpleForImmutableArray? right = default; + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenLeftIsNullThenReturnFalse() + { + // Arrange + SimpleForImmutableArray? left = default; + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnTrue() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + SimpleForImmutableArray left = new(leftValues); + SimpleForImmutableArray right = new(rightValues); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnFalse() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_differentValue); + + // Act + bool actual = left == right; + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..c5834b4 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithImmutableArrayIsCalled.cs @@ -0,0 +1,35 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_sampleValue); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject.Equals(_differentValue); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs new file mode 100644 index 0000000..bcc8ac6 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithObjectIsCalled.cs @@ -0,0 +1,49 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithObjectIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenNullThenThrowNullReferenceException() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + Action act = () => subject.Equals((object?)default); + + // Assert + _ = Should.Throw(act); + } + + [Fact] + public static void GivenEquivalentSimpleForImmutableArrayThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + object other = new SimpleForImmutableArray(_sampleValue); + + // Act + bool actual = subject.Equals(other); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentTypeThenThrowInvalidCastException() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + object other = string.Empty; + + // Act + Action act = () => subject.Equals(other); + + // Assert + _ = Should.Throw(act); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs new file mode 100644 index 0000000..2478fa6 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenEqualsWithSimpleForImmutableArrayIsCalled.cs @@ -0,0 +1,37 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenEqualsWithSimpleForImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenDifferentValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_differentValue); + + // Act + bool actual = left.Equals(right); + + // Assert + actual.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs new file mode 100644 index 0000000..20e0e7d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenGetHashCodeIsCalled.cs @@ -0,0 +1,39 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenGetHashCodeIsCalled +{ + private static readonly ImmutableArray _firstValue = ["Eta", "Theta", "Iota"]; + private static readonly ImmutableArray _secondValue = ["Kappa", "Lambda", "Mu"]; + + [Fact] + public static void GivenSameValuesThenReturnSameHashCode() + { + // Arrange + SimpleForImmutableArray first = new(_firstValue); + SimpleForImmutableArray second = new(_firstValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldBe(secondHash); + } + + [Fact] + public static void GivenDifferentValuesThenReturnDifferentHashCodes() + { + // Arrange + SimpleForImmutableArray first = new(_firstValue); + SimpleForImmutableArray second = new(_secondValue); + + // Act + int firstHash = first.GetHashCode(); + int secondHash = second.GetHashCode(); + + // Assert + firstHash.ShouldNotBe(secondHash); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs new file mode 100644 index 0000000..d3fa855 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorFromImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorFromImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueThenReturnsEquivalentInstance() + { + // Arrange + SimpleForImmutableArray result = _sampleValue; + + // Act + ImmutableArray actual = result; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs new file mode 100644 index 0000000..8adec7d --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenImplicitOperatorToImmutableArrayIsCalled.cs @@ -0,0 +1,21 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenImplicitOperatorToImmutableArrayIsCalled +{ + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValidSubjectThenReturnsValue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + ImmutableArray actual = subject; + + // Assert + actual.ShouldBe(_sampleValue); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs new file mode 100644 index 0000000..7474c80 --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithImmutableArrayIsCalled.cs @@ -0,0 +1,48 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSubjectIsNullThenReturnTrue() + { + // Arrange + SimpleForImmutableArray? subject = default; + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeTrue(); + } + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject != _sampleValue; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValueThenReturnTrue() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + bool actual = subject != _differentValue; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs new file mode 100644 index 0000000..731065f --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled.cs @@ -0,0 +1,53 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenInequalityOperatorWithSimpleForImmutableArrayIsCalled +{ + private static readonly ImmutableArray _differentValue = ["Delta", "Epsilon", "Zeta"]; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenSameValueThenReturnFalse() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_sampleValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenEquivalentValuesThenReturnFalse() + { + // Arrange + ImmutableArray leftValues = ["Alpha", "Beta", "Gamma"]; + ImmutableArray rightValues = ["Alpha", "Beta", "Gamma"]; + SimpleForImmutableArray left = new(leftValues); + SimpleForImmutableArray right = new(rightValues); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeFalse(); + } + + [Fact] + public static void GivenDifferentValuesThenReturnTrue() + { + // Arrange + SimpleForImmutableArray left = new(_sampleValue); + SimpleForImmutableArray right = new(_differentValue); + + // Act + bool actual = left != right; + + // Assert + actual.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs new file mode 100644 index 0000000..ee04e9f --- /dev/null +++ b/src/Monify.Console.Tests/Structs/Simple/SimpleForImmutableArrayTests/WhenToStringIsCalled.cs @@ -0,0 +1,22 @@ +namespace Monify.Console.Structs.Simple.SimpleForImmutableArrayTests; + +using System.Collections.Immutable; + +public static class WhenToStringIsCalled +{ + private static readonly string Expected = $"SimpleForImmutableArray {{ {typeof(ImmutableArray)} }}"; + private static readonly ImmutableArray _sampleValue = ["Alpha", "Beta", "Gamma"]; + + [Fact] + public static void GivenValueTheExpectedStringIsReturned() + { + // Arrange + SimpleForImmutableArray subject = new(_sampleValue); + + // Act + string result = subject.ToString(); + + // Assert + result.ShouldBe(Expected); + } +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InClass/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Classes/Nested/InClass/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..5782ed9 --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InClass/OutterForImmutableArray.{T}.cs @@ -0,0 +1,16 @@ +namespace Monify.Console.Classes.Nested.InClass; + +using System.Collections.Immutable; + +/// +/// Provides a nested class example that uses Monify with immutable array of string types. +/// +/// The class type that the outer class is parameterized with. +public sealed partial class OutterForImmutableArray +{ + /// + /// Represents the inner class decorated by Monify for immutable array of string types. + /// + [Monify>] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InInterface/IOutterForImmutableArray.{T}.cs b/src/Monify.Console/Classes/Nested/InInterface/IOutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..4af2295 --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InInterface/IOutterForImmutableArray.{T}.cs @@ -0,0 +1,17 @@ +namespace Monify.Console.Classes.Nested.InInterface; + +using System.Collections.Immutable; + +/// +/// Provides a nested interface example that uses Monify with immutable array of string types. +/// +/// The struct type that the interface is parameterized with. +public partial interface IOutterForImmutableArray + where T : struct +{ + /// + /// Represents the inner class decorated by Monify for immutable array of string types. + /// + [Monify>] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecord/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Classes/Nested/InRecord/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..7ba534b --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InRecord/OutterForImmutableArray.{T}.cs @@ -0,0 +1,16 @@ +namespace Monify.Console.Classes.Nested.InRecord; + +using System.Collections.Immutable; + +/// +/// Provides a nested record example that uses Monify with immutable array of string types. +/// +/// The record type that the outer record is parameterized with. +public sealed partial record OutterForImmutableArray +{ + /// + /// Represents the inner class decorated by Monify for immutable array of string types. + /// + [Monify>] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..6a85fb9 --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs @@ -0,0 +1,16 @@ +namespace Monify.Console.Classes.Nested.InRecordStruct; + +using System.Collections.Immutable; + +/// +/// Provides a nested record struct example that uses Monify with immutable array of string types. +/// +/// The record struct type that the outer record struct is parameterized with. +public readonly partial record struct OutterForImmutableArray +{ + /// + /// Represents the inner class decorated by Monify for immutable array of string types. + /// + [Monify>] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Nested/InStruct/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Classes/Nested/InStruct/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..e81b65f --- /dev/null +++ b/src/Monify.Console/Classes/Nested/InStruct/OutterForImmutableArray.{T}.cs @@ -0,0 +1,17 @@ +namespace Monify.Console.Classes.Nested.InStruct; + +using System.Collections.Immutable; + +/// +/// Provides a nested struct example that uses Monify with immutable array of string types. +/// +/// The struct type that the outer struct is parameterized with. +public readonly ref partial struct OutterForImmutableArray + where T : struct +{ + /// + /// Represents the inner class decorated by Monify for immutable array of string types. + /// + [Monify>] + public sealed partial class Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Classes/Simple/SimpleForImmutableArray.cs b/src/Monify.Console/Classes/Simple/SimpleForImmutableArray.cs new file mode 100644 index 0000000..8d4aae9 --- /dev/null +++ b/src/Monify.Console/Classes/Simple/SimpleForImmutableArray.cs @@ -0,0 +1,9 @@ +namespace Monify.Console.Classes.Simple; + +using System.Collections.Immutable; + +/// +/// Represents a simple class decorated by Monify for immutable array of string types. +/// +[Monify>] +public partial class SimpleForImmutableArray; \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InClass/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Records/Nested/InClass/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..53e3b52 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InClass/OutterForImmutableArray.{T}.cs @@ -0,0 +1,16 @@ +namespace Monify.Console.Records.Nested.InClass; + +using System.Collections.Immutable; + +/// +/// Provides a nested class example that uses Monify with immutable array of string types. +/// +/// The class type that the outer class is parameterized with. +public sealed partial class OutterForImmutableArray +{ + /// + /// Represents the inner record decorated by Monify for immutable array of string types. + /// + [Monify>] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InInterface/IOutterForImmutableArray.{T}.cs b/src/Monify.Console/Records/Nested/InInterface/IOutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..9b4d815 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InInterface/IOutterForImmutableArray.{T}.cs @@ -0,0 +1,17 @@ +namespace Monify.Console.Records.Nested.InInterface; + +using System.Collections.Immutable; + +/// +/// Provides a nested interface example that uses Monify with immutable array of string types. +/// +/// The struct type that the interface is parameterized with. +public partial interface IOutterForImmutableArray + where T : struct +{ + /// + /// Represents the inner record decorated by Monify for immutable array of string types. + /// + [Monify>] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InRecord/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Records/Nested/InRecord/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..c1d0cab --- /dev/null +++ b/src/Monify.Console/Records/Nested/InRecord/OutterForImmutableArray.{T}.cs @@ -0,0 +1,16 @@ +namespace Monify.Console.Records.Nested.InRecord; + +using System.Collections.Immutable; + +/// +/// Provides a nested record example that uses Monify with immutable array of string types. +/// +/// The record type that the outer record is parameterized with. +public sealed partial record OutterForImmutableArray +{ + /// + /// Represents the inner record decorated by Monify for immutable array of string types. + /// + [Monify>] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Records/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..3242027 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs @@ -0,0 +1,16 @@ +namespace Monify.Console.Records.Nested.InRecordStruct; + +using System.Collections.Immutable; + +/// +/// Provides a nested record struct example that uses Monify with immutable array of string types. +/// +/// The record struct type that the outer record struct is parameterized with. +public readonly partial record struct OutterForImmutableArray +{ + /// + /// Represents the inner record decorated by Monify for immutable array of string types. + /// + [Monify>] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Nested/InStruct/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Records/Nested/InStruct/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..d7514a4 --- /dev/null +++ b/src/Monify.Console/Records/Nested/InStruct/OutterForImmutableArray.{T}.cs @@ -0,0 +1,17 @@ +namespace Monify.Console.Records.Nested.InStruct; + +using System.Collections.Immutable; + +/// +/// Provides a nested struct example that uses Monify with immutable array of string types. +/// +/// The struct type that the outer struct is parameterized with. +public readonly ref partial struct OutterForImmutableArray + where T : struct +{ + /// + /// Represents the inner record decorated by Monify for immutable array of string types. + /// + [Monify>] + public sealed partial record Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Records/Simple/SimpleForImmutableArray.cs b/src/Monify.Console/Records/Simple/SimpleForImmutableArray.cs new file mode 100644 index 0000000..1dd50f0 --- /dev/null +++ b/src/Monify.Console/Records/Simple/SimpleForImmutableArray.cs @@ -0,0 +1,9 @@ +namespace Monify.Console.Records.Simple; + +using System.Collections.Immutable; + +/// +/// Represents a simple record decorated by Monify for immutable array of string types. +/// +[Monify>] +public partial record SimpleForImmutableArray; \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InClass/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Structs/Nested/InClass/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..6de1e13 --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InClass/OutterForImmutableArray.{T}.cs @@ -0,0 +1,16 @@ +namespace Monify.Console.Structs.Nested.InClass; + +using System.Collections.Immutable; + +/// +/// Provides a nested class example that uses Monify with immutable array of string types. +/// +/// The class type that the outer class is parameterized with. +public sealed partial class OutterForImmutableArray +{ + /// + /// Represents the inner struct decorated by Monify for immutable array of string types. + /// + [Monify>] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InInterface/IOutterForImmutableArray.{T}.cs b/src/Monify.Console/Structs/Nested/InInterface/IOutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..dbd66eb --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InInterface/IOutterForImmutableArray.{T}.cs @@ -0,0 +1,17 @@ +namespace Monify.Console.Structs.Nested.InInterface; + +using System.Collections.Immutable; + +/// +/// Provides a nested interface example that uses Monify with immutable array of string types. +/// +/// The struct type that the interface is parameterized with. +public partial interface IOutterForImmutableArray + where T : struct +{ + /// + /// Represents the inner struct decorated by Monify for immutable array of string types. + /// + [Monify>] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InRecord/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Structs/Nested/InRecord/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..1155352 --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InRecord/OutterForImmutableArray.{T}.cs @@ -0,0 +1,16 @@ +namespace Monify.Console.Structs.Nested.InRecord; + +using System.Collections.Immutable; + +/// +/// Provides a nested record example that uses Monify with immutable array of string types. +/// +/// The record type that the outer record is parameterized with. +public sealed partial record OutterForImmutableArray +{ + /// + /// Represents the inner struct decorated by Monify for immutable array of string types. + /// + [Monify>] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..e17975c --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InRecordStruct/OutterForImmutableArray.{T}.cs @@ -0,0 +1,16 @@ +namespace Monify.Console.Structs.Nested.InRecordStruct; + +using System.Collections.Immutable; + +/// +/// Provides a nested record struct example that uses Monify with immutable array of string types. +/// +/// The record struct type that the outer record struct is parameterized with. +public readonly partial record struct OutterForImmutableArray +{ + /// + /// Represents the inner struct decorated by Monify for immutable array of string types. + /// + [Monify>] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Nested/InStruct/OutterForImmutableArray.{T}.cs b/src/Monify.Console/Structs/Nested/InStruct/OutterForImmutableArray.{T}.cs new file mode 100644 index 0000000..f7d274d --- /dev/null +++ b/src/Monify.Console/Structs/Nested/InStruct/OutterForImmutableArray.{T}.cs @@ -0,0 +1,17 @@ +namespace Monify.Console.Structs.Nested.InStruct; + +using System.Collections.Immutable; + +/// +/// Provides a nested struct example that uses Monify with immutable array of string types. +/// +/// The struct type that the outer struct is parameterized with. +public readonly ref partial struct OutterForImmutableArray + where T : struct +{ + /// + /// Represents the inner struct decorated by Monify for immutable array of string types. + /// + [Monify>] + public readonly partial struct Inner; +} \ No newline at end of file diff --git a/src/Monify.Console/Structs/Simple/SimpleForImmutableArray.cs b/src/Monify.Console/Structs/Simple/SimpleForImmutableArray.cs new file mode 100644 index 0000000..0d77632 --- /dev/null +++ b/src/Monify.Console/Structs/Simple/SimpleForImmutableArray.cs @@ -0,0 +1,9 @@ +namespace Monify.Console.Structs.Simple; + +using System.Collections.Immutable; + +/// +/// Represents a simple struct decorated by Monify for immutable array of string types. +/// +[Monify>] +public readonly partial struct SimpleForImmutableArray; \ No newline at end of file From f5b3f180ec226b53896bd8ebe0cbd51d42b1a2e0 Mon Sep 17 00:00:00 2001 From: Paul Martins Date: Fri, 31 Oct 2025 20:53:35 +0000 Subject: [PATCH 9/9] - MONFY03 is no longer raised if the encapsulated type cannot be determined (#22). --- CHANGELOG.md | 3 ++- src/Monify/AttributeAnalyzer.cs | 2 +- .../Semantics/INamedTypeSymbolExtensions.IsStateless.cs | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4472302..b308626 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,10 @@ All notable changes to Monify will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -# [1.1.3] - TBC +# [1.1.3] - 2025-10-31 ## Fixed +- MONFY03 is no longer raised if the encapsulated type cannot be determined (#22). - Equality checks involing an encapsulated array containing identical values now yield true (#19). - `ToString` no longer throws a `FormatException`. diff --git a/src/Monify/AttributeAnalyzer.cs b/src/Monify/AttributeAnalyzer.cs index 9530e34..498dc4d 100644 --- a/src/Monify/AttributeAnalyzer.cs +++ b/src/Monify/AttributeAnalyzer.cs @@ -216,7 +216,7 @@ private static bool IsViolatingSelfReferenceRule( private static bool IsViolatingCapturesStateRule(INamedTypeSymbol? symbol, ITypeSymbol? value) { - return symbol is null || value is null || !symbol.IsStateless(value, out _); + return symbol is null || !symbol.IsStateless(value, out _); } private static bool IsViolatingCompatibleTargetTypeRule(AttributeSyntax attribute, out TypeDeclarationSyntax? type) diff --git a/src/Monify/Semantics/INamedTypeSymbolExtensions.IsStateless.cs b/src/Monify/Semantics/INamedTypeSymbolExtensions.IsStateless.cs index 4b484aa..5b1f569 100644 --- a/src/Monify/Semantics/INamedTypeSymbolExtensions.IsStateless.cs +++ b/src/Monify/Semantics/INamedTypeSymbolExtensions.IsStateless.cs @@ -29,7 +29,7 @@ internal static partial class INamedTypeSymbolExtensions /// /// If the class holds state, then it points to a design issue, as the class is intended to represent a single state. /// - public static bool IsStateless(this INamedTypeSymbol subject, ITypeSymbol value, out bool hasFieldForEncapsulatedValue) + public static bool IsStateless(this INamedTypeSymbol subject, ITypeSymbol? value, out bool hasFieldForEncapsulatedValue) { IFieldSymbol[] fields = subject .GetMembers() @@ -44,7 +44,7 @@ public static bool IsStateless(this INamedTypeSymbol subject, ITypeSymbol value, return true; } - if (fields.Length == ExpectedFieldsWhenFieldIsAlreadyDefined) + if (value is not null && fields.Length == ExpectedFieldsWhenFieldIsAlreadyDefined) { IFieldSymbol field = fields[OffsetForFieldWhenAlreadyDefined];