Posts

Post not yet marked as solved
0 Replies
386 Views
I'm trying to write a .sh script to automatically run UI tests for all devices and device layouts (portrait/landscape). Is there a flag I can use to rotate the device using the command line?If not, is the best way to just extract my current tests into functions and have two tests that set the layout prior to calling the function?
Posted
by Matt G.
Last updated
.
Post marked as solved
1 Replies
1.3k Views
What is the best way to test an ObservableObject?As a demo, I am trying to make a test, which has a function that takes an enum describing the position on a game board and updates the state of the object.Is there any way to instantiate the object for testing purposes without the UI (using a Unit Testing Bundle) so that I can test this function without the UI?
Posted
by Matt G.
Last updated
.
Post marked as solved
4 Replies
1.6k Views
Other than pass by value vs pass by reference, what are the differences between structs and classes? Also, are there any cases where using one would be more advantageous than the other, and if so, when?
Posted
by Matt G.
Last updated
.