Skip to content

Instantly share code, notes, and snippets.

@vedon
Created June 9, 2020 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vedon/6326141fa7d2415832f5570b03534cb6 to your computer and use it in GitHub Desktop.
Save vedon/6326141fa7d2415832f5570b03534cb6 to your computer and use it in GitHub Desktop.
func testFeature2() {
let dependencies: Feature2.Dependencies = AnyInitializer(Feature2.Dependencies.init).resolve(by: container)
let f2 = Feature2(dependencies: dependencies)
f2.doSomething()
}
output:
Test Case '-[DITests.DITests testFeature2]' started.
Feature2 do something
Feature1 do something
Feature3 do something
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment