public void BuildTestNegative() { KeyboardParametersStorage keyboardDataNull = null; ksDocument3D document3DNull = null; var obj = new BoardCreator(); Assert.Throws <NullReferenceException>(() => obj.Build(document3DNull, keyboardDataNull)); }
public void BuildTest() { KeyboardParametersStorage keyboardDataNull = null; ksDocument3D document3DNull = null; var commutationCreatorObject = new CommutationCreator(); Assert.Throws <NullReferenceException>(() => commutationCreatorObject.Build(document3DNull, keyboardDataNull)); }
public void RecordTestNegative(double bodyLength, double bodyHeight, double bodyDepth, bool panelDisplay, bool panelButtons, bool panelKnobs, bool panelWheel, int commutationXLRSockets, int commutationTRSSockets, int commutationMIDISockets, KeyboardType keyboardType, KeysAmountMode keyAmount) { var obj = new KeyboardParametersStorage(); Assert.Throws <ArgumentException>(() => obj.Record(bodyLength, bodyHeight, bodyDepth, panelDisplay, panelButtons, panelKnobs, panelWheel, commutationXLRSockets, commutationTRSSockets, commutationMIDISockets, keyboardType, keyAmount)); }
public void RecordTestPositive(double bodyLength, double bodyHeight, double bodyDepth, bool panelDisplay, bool panelButtons, bool panelKnobs, bool panelWheel, int commutationXLRSockets, int commutationTRSSockets, int commutationMIDISockets, KeyboardType keyboardType, KeysAmountMode keyAmount) { var obj = new KeyboardParametersStorage(); obj.Record(bodyLength, bodyHeight, bodyDepth, panelDisplay, panelButtons, panelKnobs, panelWheel, commutationXLRSockets, commutationTRSSockets, commutationMIDISockets, keyboardType, keyAmount); Assert.AreEqual(obj.BodyLength, bodyLength); Assert.AreEqual(obj.BodyHeight, bodyHeight); Assert.AreEqual(obj.BodyDepth, bodyDepth); Assert.AreEqual(obj.CommutationXLR, commutationXLRSockets); Assert.AreEqual(obj.CommutationTRS, commutationTRSSockets); Assert.AreEqual(obj.CommutationMIDI, commutationMIDISockets); }