blob: 56d41d4ec2e62eb756f9b3b0ab5465752d8364f0 [file] [log] [blame]
using System;
using Apache.Geode.NetCore;
using Xunit;
namespace GemfireDotNetTest
{
[Collection("Geode .net Core Collection")]
public class ObjectLeakUnitTests
{
[Fact]
public void TestLeakCacheFactory()
{
var client = new Client();
using (var cacheFactory = CacheFactory.Create())
{
Assert.Throws<InvalidOperationException>(() => client.Dispose());
}
}
}
}