Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test;
Expand All @@ -11,10 +13,7 @@ namespace Ethereum.Blockchain.Legacy.Test;
public class ArgsZeroOneBalanaceTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
7 changes: 3 additions & 4 deletions src/Nethermind/Ethereum.Blockchain.Legacy.Test/AttackTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test;
Expand All @@ -11,10 +13,7 @@ namespace Ethereum.Blockchain.Legacy.Test;
public class AttackTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test;
Expand All @@ -11,10 +13,7 @@ namespace Ethereum.Blockchain.Legacy.Test;
public class BadOpCodeTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
7 changes: 3 additions & 4 deletions src/Nethermind/Ethereum.Blockchain.Legacy.Test/BugsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test;
Expand All @@ -11,10 +13,7 @@ namespace Ethereum.Blockchain.Legacy.Test;
public class BugsTets : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test;
Expand All @@ -11,10 +13,8 @@ namespace Ethereum.Blockchain.Legacy.Test;
public class CallCodesTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
var loader = new TestsSourceLoader(new LoadLegacyGeneralStateTestsStrategy(), "stCallCodes");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using NUnit.Framework;

Expand All @@ -12,9 +13,9 @@ namespace Ethereum.Blockchain.Legacy.Test
public class CallCreateCallCodeTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
public async Task Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
Assert.That((await RunTest(test)).Pass, Is.True);
}

public static IEnumerable<GeneralStateTest> LoadTests()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,7 @@ namespace Ethereum.Blockchain.Legacy.Test
public class CallDelegateCodesCallCodeHomesteadTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,8 @@ namespace Ethereum.Blockchain.Legacy.Test
public class CallDelegateCodesHomesteadTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
var loader = new TestsSourceLoader(new LoadLegacyGeneralStateTestsStrategy(), "stCallDelegateCodesHomestead");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,7 @@ namespace Ethereum.Blockchain.Legacy.Test
public class ChangedEIP150Tests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,7 @@ namespace Ethereum.Blockchain.Legacy.Test
public class CodeCopyTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,7 @@ namespace Ethereum.Blockchain.Legacy.Test
public class CodeSizeLimitTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,7 @@ namespace Ethereum.Blockchain.Legacy.Test
public class Create2Tests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
7 changes: 3 additions & 4 deletions src/Nethermind/Ethereum.Blockchain.Legacy.Test/CreateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,7 @@ namespace Ethereum.Blockchain.Legacy.Test
public class CreateTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,7 @@ namespace Ethereum.Blockchain.Legacy.Test
public class DelegateCallTestHomesteadTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,7 @@ namespace Ethereum.Blockchain.Legacy.Test
public class EIP150SingleCodeGasPricesTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,7 @@ namespace Ethereum.Blockchain.Legacy.Test
public class Eip150SpecificTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,7 @@ namespace Ethereum.Blockchain.Legacy.Test
public class Eip158SpecificTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: LGPL-3.0-only

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using FluentAssertions;
using NUnit.Framework;

namespace Ethereum.Blockchain.Legacy.Test
Expand All @@ -12,10 +14,7 @@ namespace Ethereum.Blockchain.Legacy.Test
public class ExampleTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
{
Assert.That(RunTest(test).Pass, Is.True);
}
public async Task Test(GeneralStateTest test) => (await RunTest(test)).Pass.Should().BeTrue();

public static IEnumerable<GeneralStateTest> LoadTests()
{
Expand Down
Loading