public void Throws_IOException() { // ARRANGE var sut = new EmbeddedResourcesFileSystem(Assembly.GetExecutingAssembly()); // ACT var ex = Record.Exception(() => sut.SetAttributes("/file1.txt", FileAttributes.Normal)); // ASSERT Assert.IsType <IOException>(ex); }