MSW is primarily used in integration tests and end-to-end tests to mock network interactions. However, it can also be used in unit tests if your unit requires network code.