public void Test_GetWorkspace_ThrowsAnException_WhenTheWorkspaceIdIsNotValid() { try { _structurizrClient = new StructurizrClient("key", "secret"); _structurizrClient.GetWorkspaceAsync(0).Wait(); throw new TestFailedException(); } catch (AggregateException iae) { Assert.Equal("The workspace ID must be a positive integer.", iae.InnerException.Message); } }