diff --git a/src/Essentials/test/DeviceTests/Tests/SecureStorage_Tests.cs b/src/Essentials/test/DeviceTests/Tests/SecureStorage_Tests.cs index fc229aa6aec9..7d697e228769 100644 --- a/src/Essentials/test/DeviceTests/Tests/SecureStorage_Tests.cs +++ b/src/Essentials/test/DeviceTests/Tests/SecureStorage_Tests.cs @@ -223,5 +223,25 @@ await Parallel.ForEachAsync(Enumerable.Range(0, 100), async (i, _) => Assert.Null(fetched); }); } + + [Theory +#if MACCATALYST + (Skip = "Need to configure entitlements.") +#endif + ] + [InlineData("test.txt", "data")] + public async Task Set_RemoveAll_Set_Get(string key, string data) + { + await SecureStorage.SetAsync(key, data); + + // Remove all + SecureStorage.RemoveAll(); + + //Set again + await SecureStorage.SetAsync(key, data); + var c = await SecureStorage.GetAsync(key); + + Assert.Equal(data, c); + } } }