From 458509c76cc4035cf8d1716d389a7c7597fe2cbb Mon Sep 17 00:00:00 2001 From: Koen Date: Wed, 19 Apr 2023 19:53:42 +0100 Subject: [PATCH] Removed 2 temp tests --- ...ressionGeneratorTests.Issue65.verified.txt | 16 ------ ...essionGeneratorTests.Issue652.verified.txt | 17 ------ .../ProjectionExpressionGeneratorTests.cs | 57 ------------------- 3 files changed, 90 deletions(-) delete mode 100644 tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.Issue65.verified.txt delete mode 100644 tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.Issue652.verified.txt diff --git a/tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.Issue65.verified.txt b/tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.Issue65.verified.txt deleted file mode 100644 index e9ea658..0000000 --- a/tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.Issue65.verified.txt +++ /dev/null @@ -1,16 +0,0 @@ -// -#nullable disable -using System; -using EntityFrameworkCore.Projectables; - -namespace EntityFrameworkCore.Projectables.Generated -{ - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - static class _ContentExtensions_Outer - { - static global::System.Linq.Expressions.Expression> Expression() - { - return (string s) => s.Inner(); - } - } -} \ No newline at end of file diff --git a/tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.Issue652.verified.txt b/tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.Issue652.verified.txt deleted file mode 100644 index a90a8c0..0000000 --- a/tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.Issue652.verified.txt +++ /dev/null @@ -1,17 +0,0 @@ -// -#nullable disable -using System; -using EntityFrameworkCore.Projectables; -using Foo; - -namespace EntityFrameworkCore.Projectables.Generated -{ - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - static class Foo_ContentExtensions_Outer - { - static global::System.Linq.Expressions.Expression> Expression() - { - return (string s) => s.Inner(); - } - } -} \ No newline at end of file diff --git a/tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.cs b/tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.cs index c71f56b..36981f2 100644 --- a/tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.cs +++ b/tests/EntityFrameworkCore.Projectables.Generator.Tests/ProjectionExpressionGeneratorTests.cs @@ -1615,63 +1615,6 @@ class EntityBase where TId : ICloneable, new() { return Verifier.Verify(result.GeneratedTrees[0].ToString()); } - [Fact] - public Task Issue65() - { - // issue: https://github.com/koenbeuk/EntityFrameworkCore.Projectables/issues/48 - - var compilation = CreateCompilation(@" -using System; -using EntityFrameworkCore.Projectables; - -public static class ContentExtensions -{ - public static string Inner(this string s) => s; - - [Projectable(NullConditionalRewriteSupport = NullConditionalRewriteSupport.Ignore)] - public static string Outer(this string s) => s?.Inner(); -} -"); - - var result = RunGenerator(compilation); - - Assert.Empty(result.Diagnostics); - Assert.Single(result.GeneratedTrees); - - return Verifier.Verify(result.GeneratedTrees[0].ToString()); - } - - [Fact] - public Task Issue652() - { - // issue: https://github.com/koenbeuk/EntityFrameworkCore.Projectables/issues/48 - - var compilation = CreateCompilation(@" -using System; -using EntityFrameworkCore.Projectables; - -namespace Foo; - -public static class ContentExtensions -{ - [Projectable(NullConditionalRewriteSupport = NullConditionalRewriteSupport.Ignore)] - public static string Outer(this string s) => s?.Inner(); -} - -public static class ContentExtensions2 -{ - public static string Inner(this string s) => s; -} -"); - - var result = RunGenerator(compilation); - - Assert.Empty(result.Diagnostics); - Assert.Single(result.GeneratedTrees); - - return Verifier.Verify(result.GeneratedTrees[0].ToString()); - } - #region Helpers Compilation CreateCompilation(string source, bool expectedToCompile = true)