public void TestStorageContext_AsReadOnly() { var state = TestUtils.GetContract(); var storageContext = new StorageContext { Id = state.Id, IsReadOnly = false }; ApplicationEngine.AsReadOnly(storageContext).IsReadOnly.Should().BeTrue(); }