Table of Contents

Getting Started

To use this library, simply include SparkTest.NET.dll in your project or grab it from NuGet, and add this to the top of each test .cs file that needs it:

using static SparkTest.NET.SparkSessionFactory;

Then you can use it in a test project like this,


[Fact(DisplayName = "Example usage of UseSession")]
public static void Example()
{
    var result = UseSession(s => s.CreateDataFrameFromData(new { Id = 3 }).Collect());
    result.Should().HaveCount(1);
    result.First()[0].Should().Be(3);
}