private void NoSignRequirementCoverage_Printer_Win7_Win2K8R2S0TreeConnectResponseChecker(int messageId, int sessionId, int treeId, bool isSecuritySignatureZero, Microsoft.Protocol.TestSuites.Smb.ShareType shareType, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isSigned, bool isInDfs, bool isSupportExtSignature) { this.Manager.Comment("checking step \'event TreeConnectResponse(3,1,1,True,Printer,Success,False,False,F" + "alse)\'"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 3, messageId, "messageId of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, treeId, "treeId of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isSecuritySignatureZero, "isSecuritySignatureZero of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.ShareType>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.ShareType)(1)), shareType, "shareType of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSigned, "isSigned of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isInDfs, "isInDfs of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSupportExtSignature, "isSupportExtSignature of TreeConnectResponse, state S16"); }
private void NoSignRequirementCoverage_Printer_Win7_Win2K8R2S0SessionSetupResponseChecker1(int messageId, int sessionId, int securitySignatureValue, bool isSigned, bool isGuestAccount, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event SessionSetupResponse(2,1,0,False,False,Success)\'"); try { TestManagerHelpers.AssertAreEqual <int>(this.Manager, 2, messageId, "messageId of SessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of SessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 0, securitySignatureValue, "securitySignatureValue of SessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSigned, "isSigned of SessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isGuestAccount, "isGuestAccount of SessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of SessionSetupResponse, state S13"); } catch (TransactionFailedException) { this.Manager.Comment("This step would have covered MS-SMB_R8380, MS-SMB_R4143, MS-SMB_R4784, MS-SMB_R21" + "93, MS-SMB_R8390"); throw; } this.Manager.Checkpoint("MS-SMB_R8380"); this.Manager.Checkpoint("MS-SMB_R4143"); this.Manager.Checkpoint("MS-SMB_R4784"); this.Manager.Checkpoint("MS-SMB_R2193"); this.Manager.Checkpoint("MS-SMB_R8390"); }
private void NoSignNonExtendRequirementCoverage_Create_Win7_Win2K8R2S0NonExtendedSessionSetupResponseChecker2(int messageId, int sessionId, int securitySignatureValue, bool isSigned, bool isGuestAccount, bool isRS2322Implemented, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event NonExtendedSessionSetupResponse(2,1,0,False,True,False,Succe" + "ss)\'"); try { TestManagerHelpers.AssertAreEqual <int>(this.Manager, 2, messageId, "messageId of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 0, securitySignatureValue, "securitySignatureValue of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSigned, "isSigned of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isGuestAccount, "isGuestAccount of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isRS2322Implemented, "isRS2322Implemented of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of NonExtendedSessionSetupResponse, state S13"); } catch (TransactionFailedException) { this.Manager.Comment("This step would have covered MS-SMB_R2322, MS-SMB_R8380"); throw; } this.Manager.Checkpoint("MS-SMB_R2322"); this.Manager.Checkpoint("MS-SMB_R8380"); }
private void NoSignRequirementCoverage_Printer_Win7_Win2K8R2S0NegotiateResponseChecker(int messageId, bool isSignatureRequired, bool isSignatureEnabled, int dialectIndex, Microsoft.Modeling.Set <Microsoft.Protocol.TestSuites.Smb.Capabilities> serverCapabilities, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event NegotiateResponse(1,False,False,5,{CapNtSmbs,CapExtendedSecu" + "rity,CapDfs,CapInfoLevelPassThru},Success)\'"); try { TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, messageId, "messageId of NegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSignatureRequired, "isSignatureRequired of NegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSignatureEnabled, "isSignatureEnabled of NegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 5, dialectIndex, "dialectIndex of NegotiateResponse, state S10"); TestManagerHelpers.AssertNotNull(this.Manager, serverCapabilities, "serverCapabilities of NegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <Microsoft.Xrt.Runtime.RuntimeMap <Microsoft.Protocol.TestSuites.Smb.Capabilities, Microsoft.Xrt.Runtime.Singleton> >(this.Manager, Microsoft.Xrt.Runtime.RuntimeSupport.UpdateMap <Microsoft.Protocol.TestSuites.Smb.Capabilities, Microsoft.Xrt.Runtime.Singleton>(Microsoft.Xrt.Runtime.RuntimeSupport.UpdateMap <Microsoft.Protocol.TestSuites.Smb.Capabilities, Microsoft.Xrt.Runtime.Singleton>(Microsoft.Xrt.Runtime.RuntimeSupport.UpdateMap <Microsoft.Protocol.TestSuites.Smb.Capabilities, Microsoft.Xrt.Runtime.Singleton>(Microsoft.Xrt.Runtime.RuntimeSupport.UpdateMap <Microsoft.Protocol.TestSuites.Smb.Capabilities, Microsoft.Xrt.Runtime.Singleton>(Microsoft.Xrt.Runtime.RuntimeSupport.MakeMap <Microsoft.Protocol.TestSuites.Smb.Capabilities, Microsoft.Xrt.Runtime.Singleton>(), Microsoft.Protocol.TestSuites.Smb.Capabilities.CapNtSmbs, this.Make <Microsoft.Xrt.Runtime.RuntimeMapElement <Microsoft.Xrt.Runtime.Singleton> >(new string[] { "Element" }, new object[] { Microsoft.Xrt.Runtime.Singleton.Single })), Microsoft.Protocol.TestSuites.Smb.Capabilities.CapExtendedSecurity, this.Make <Microsoft.Xrt.Runtime.RuntimeMapElement <Microsoft.Xrt.Runtime.Singleton> >(new string[] { "Element" }, new object[] { Microsoft.Xrt.Runtime.Singleton.Single })), Microsoft.Protocol.TestSuites.Smb.Capabilities.CapDfs, this.Make <Microsoft.Xrt.Runtime.RuntimeMapElement <Microsoft.Xrt.Runtime.Singleton> >(new string[] { "Element" }, new object[] { Microsoft.Xrt.Runtime.Singleton.Single })), Microsoft.Protocol.TestSuites.Smb.Capabilities.CapInfoLevelPassThru, this.Make <Microsoft.Xrt.Runtime.RuntimeMapElement <Microsoft.Xrt.Runtime.Singleton> >(new string[] { "Element" }, new object[] { Microsoft.Xrt.Runtime.Singleton.Single })), serverCapabilities.Rep, "serverCapabilities of NegotiateResponse, state S10, field selection Rep"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of NegotiateResponse, state S10"); } catch (TransactionFailedException) { this.Manager.Comment("This step would have covered MS-SMB_R2308, MS-SMB_R4747"); throw; } this.Manager.Checkpoint("MS-SMB_R2308"); this.Manager.Checkpoint("MS-SMB_R4747"); }
private void NoSignNonExtendRequirementCoverage_Create_Win7_Win2K8R2S0NtTransactCreateResponseChecker(int messageId, int sessionId, int treeId, bool isSigned, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event NtTransactCreateResponse(4,1,1,False,Success)\'"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 4, messageId, "messageId of NtTransactCreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of NtTransactCreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, treeId, "treeId of NtTransactCreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSigned, "isSigned of NtTransactCreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of NtTransactCreateResponse, state S19"); }
private void NoSignNonExtendRequirementCoverage_Create_Win7_Win2K8R2S0ErrorResponseChecker(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event ErrorResponse(4,NetworkSessionExpired)\'"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 4, messageId, "messageId of ErrorResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.NetworkSessionExpired, messageStatus, "messageStatus of ErrorResponse, state S19"); }
private void NoSignNonExtendRequirementCoverage_Create_Win7_Win2K8R2S0NonExtendedNegotiateResponseChecker(int messageId, bool isSignatureRequired, bool isSignatureEnabled, int dialectIndex, Microsoft.Modeling.Set <Microsoft.Protocol.TestSuites.Smb.Capabilities> serverCapabilities, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event NonExtendedNegotiateResponse(1,False,False,5,{CapNtSmbs,CapD" + "fs,CapInfoLevelPassThru},Success)\'"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, messageId, "messageId of NonExtendedNegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSignatureRequired, "isSignatureRequired of NonExtendedNegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSignatureEnabled, "isSignatureEnabled of NonExtendedNegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 5, dialectIndex, "dialectIndex of NonExtendedNegotiateResponse, state S10"); TestManagerHelpers.AssertNotNull(this.Manager, serverCapabilities, "serverCapabilities of NonExtendedNegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <Microsoft.Xrt.Runtime.RuntimeMap <Microsoft.Protocol.TestSuites.Smb.Capabilities, Microsoft.Xrt.Runtime.Singleton> >(this.Manager, Microsoft.Xrt.Runtime.RuntimeSupport.UpdateMap <Microsoft.Protocol.TestSuites.Smb.Capabilities, Microsoft.Xrt.Runtime.Singleton>(Microsoft.Xrt.Runtime.RuntimeSupport.UpdateMap <Microsoft.Protocol.TestSuites.Smb.Capabilities, Microsoft.Xrt.Runtime.Singleton>(Microsoft.Xrt.Runtime.RuntimeSupport.UpdateMap <Microsoft.Protocol.TestSuites.Smb.Capabilities, Microsoft.Xrt.Runtime.Singleton>(Microsoft.Xrt.Runtime.RuntimeSupport.MakeMap <Microsoft.Protocol.TestSuites.Smb.Capabilities, Microsoft.Xrt.Runtime.Singleton>(), Microsoft.Protocol.TestSuites.Smb.Capabilities.CapNtSmbs, this.Make <Microsoft.Xrt.Runtime.RuntimeMapElement <Microsoft.Xrt.Runtime.Singleton> >(new string[] { "Element" }, new object[] { Microsoft.Xrt.Runtime.Singleton.Single })), Microsoft.Protocol.TestSuites.Smb.Capabilities.CapDfs, this.Make <Microsoft.Xrt.Runtime.RuntimeMapElement <Microsoft.Xrt.Runtime.Singleton> >(new string[] { "Element" }, new object[] { Microsoft.Xrt.Runtime.Singleton.Single })), Microsoft.Protocol.TestSuites.Smb.Capabilities.CapInfoLevelPassThru, this.Make <Microsoft.Xrt.Runtime.RuntimeMapElement <Microsoft.Xrt.Runtime.Singleton> >(new string[] { "Element" }, new object[] { Microsoft.Xrt.Runtime.Singleton.Single })), serverCapabilities.Rep, "serverCapabilities of NonExtendedNegotiateResponse, state S10, field selection Re" + "p"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of NonExtendedNegotiateResponse, state S10"); }
private void NoSignRequirementCoverage_MultipleTreeTraditional_Win7_Win2K8R2S0TreeConnectResponseChecker1(int messageId, int sessionId, int treeId, bool isSecuritySignatureZero, Microsoft.Protocol.TestSuites.Smb.ShareType shareType, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isSigned, bool isInDfs, bool isSupportExtSignature) { this.Manager.Comment("checking step \'event TreeConnectResponse(4,1,2,True,Disk,Success,False,False,True" + ")\'"); try { TestManagerHelpers.AssertAreEqual <int>(this.Manager, 4, messageId, "messageId of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 2, treeId, "treeId of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isSecuritySignatureZero, "isSecuritySignatureZero of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.ShareType>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.ShareType)(0)), shareType, "shareType of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSigned, "isSigned of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isInDfs, "isInDfs of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isSupportExtSignature, "isSupportExtSignature of TreeConnectResponse, state S19"); } catch (TransactionFailedException) { this.Manager.Comment("This step would have covered MS-SMB_R8565"); throw; } this.Manager.Checkpoint("MS-SMB_R8565"); }
private void NoSignRequirementCoverage_CreateNewfolderTraditional_Win7_Win2K8R2S0CreateResponseChecker(int messageId, int sessionId, int treeId, int fid, bool isSigned, Microsoft.Modeling.Set <Microsoft.Protocol.TestSuites.Smb.CreateAction> createAction, bool isFileIdZero, bool isVolumeGuidZero, bool isDirectoryZero, bool isByteCountZero, bool isNoStream, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event CreateResponse(4,1,1,0,False,{FileCreated,FileDoesNotExist}," + "True,True,False,True,True,Success)\'"); try { TestManagerHelpers.AssertAreEqual <int>(this.Manager, 4, messageId, "messageId of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, treeId, "treeId of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 0, fid, "fid of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSigned, "isSigned of CreateResponse, state S19"); TestManagerHelpers.AssertNotNull(this.Manager, createAction, "createAction of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Xrt.Runtime.RuntimeMap <Microsoft.Protocol.TestSuites.Smb.CreateAction, Microsoft.Xrt.Runtime.Singleton> >(this.Manager, Microsoft.Xrt.Runtime.RuntimeSupport.UpdateMap <Microsoft.Protocol.TestSuites.Smb.CreateAction, Microsoft.Xrt.Runtime.Singleton>(Microsoft.Xrt.Runtime.RuntimeSupport.UpdateMap <Microsoft.Protocol.TestSuites.Smb.CreateAction, Microsoft.Xrt.Runtime.Singleton>(Microsoft.Xrt.Runtime.RuntimeSupport.MakeMap <Microsoft.Protocol.TestSuites.Smb.CreateAction, Microsoft.Xrt.Runtime.Singleton>(), Microsoft.Protocol.TestSuites.Smb.CreateAction.FileCreated, this.Make <Microsoft.Xrt.Runtime.RuntimeMapElement <Microsoft.Xrt.Runtime.Singleton> >(new string[] { "Element" }, new object[] { Microsoft.Xrt.Runtime.Singleton.Single })), Microsoft.Protocol.TestSuites.Smb.CreateAction.FileDoesNotExist, this.Make <Microsoft.Xrt.Runtime.RuntimeMapElement <Microsoft.Xrt.Runtime.Singleton> >(new string[] { "Element" }, new object[] { Microsoft.Xrt.Runtime.Singleton.Single })), createAction.Rep, "createAction of CreateResponse, state S19, field selection Rep"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isFileIdZero, "isFileIdZero of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isVolumeGuidZero, "isVolumeGuidZero of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isDirectoryZero, "isDirectoryZero of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isByteCountZero, "isByteCountZero of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isNoStream, "isNoStream of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of CreateResponse, state S19"); } catch (TransactionFailedException) { this.Manager.Comment("This step would have covered MS-SMB_R30081, MS-SMB_R30065"); throw; } this.Manager.Checkpoint("MS-SMB_R30081"); this.Manager.Checkpoint("MS-SMB_R30065"); }